Oracle查询出所有空表

1.分析所有表

select 'analyze table '||table_name||' compute statistics;' from user_tables;

copy出来执行。。。。更新user_tables的num_rows

 2.

   select * FROM user_tables WHERE NUM_ROWS =0 ;

猜你喜欢

转载自www.cnblogs.com/cpbm/p/12455768.html