准确计算oracle表分区记录数

来源:互联网 发布:伪造公司印章软件 编辑:程序博客网 时间:2024/04/29 01:17

1,先对表进行分析:

analyze table [table] compute statistics;


2,然后查询表分区记录数

select t.partition_name,t.num_rows from all_tab_partitions t where table_name='table_name'  

0 0