欢迎投稿

今日深度:

Oracle查询出所有空表,

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.htsjk.Com true http://www.htsjk.com/oracle/42387.html NewsArticle 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 ;...
相关文章
    暂无相关文章
评论暂时关闭