zl程序教程

您现在的位置是:首页 >  其它

当前栏目

oracle11g处理空表

处理 oracle11g 空表
2023-09-27 14:23:18 时间

先查询一下当前用户下的所有空表
select table_name from user_tables where NUM_ROWS=0;
用以下这句查找空表
select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0