Oracle某个表有记录,为什么user_tables中num_rows为空,以及解决方法

Oracle不是实时的对表进行分析的,需要手动执行分析

分析表:

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

参考: https://zhidao.baidu.com/question/1367876849102899699.html
https://www.cnblogs.com/einyboy/archive/2012/08/09/2630321.html

你可能感兴趣的:(工作,数据库)