查询空表 并导出修改空表语句

select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0 or num_rows is null;

如果表存在分区

alter table 表名 modify partition 分区名 allocate extent;

posted on 2015-01-14 09:52  yeahdwb  阅读(165)  评论(0编辑  收藏  举报