首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 查询有数据的表,以及统计数据不一致时的解决办法

2013-03-26 
oracle 查询有数据的表,以及统计数据不一致时的解决方法查询有数据的表??SELECT table_name, nvl(num_rows

oracle 查询有数据的表,以及统计数据不一致时的解决方法

查询有数据的表

?

?

SELECT table_name, nvl(num_rows,1)

FROM dba_tables t where t.owner = 'username'order by nvl(num_rows,1) desc

?

如果跟select count(*) from tablename 的值不一样,在命令行执行以下存储过程

?EXEC dbms_stats.gather_schema_stats(ownname=>'own username');


我的异常网推荐解决方案:oracle存储过程,http://www.myexception.cn/oracle-develop/177537.html

热点排行