美文网首页
Oracle查询出所有空表

Oracle查询出所有空表

作者: 羞涩的二黄 | 来源:发表于2022-03-23 17:09 被阅读0次

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 ;

相关文章

网友评论

      本文标题:Oracle查询出所有空表

      本文链接:https://www.haomeiwen.com/subject/xizcjrtx.html