当前位置: 移动技术网 > IT编程>数据库>Oracle > Oracle查询出所有空表

Oracle查询出所有空表

2020年03月10日  | 移动技术网IT编程  | 我要评论

艾兰·图灵,happy together 综艺,欲海三姐妹

 

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 ;

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网