1、搜索空表数据,并转成行的形式:
select replace(wm_concat(t.results),',',';') from
(
select 'alter table '||table_name||' allocate extent' results from user_tables where num_rows=0
)t;
2、将运行后的数据复制到editplus里,将 ; 用正则表达式全部替换为 ;\n
3、然后将所有空表语句一次性运行即可
1、搜索空表数据,并转成行的形式:
select replace(wm_concat(t.results),',',';') from
(
select 'alter table '||table_name||' allocate extent' results from user_tables where num_rows=0
)t;
2、将运行后的数据复制到editplus里,将 ; 用正则表达式全部替换为 ;\n
3、然后将所有空表语句一次性运行即可