您的位置:首页 > 数据库 > Oracle

准确计算oracle表分区记录数

2016-06-02 20:37 316 查看
1,先对表进行分析:

analyze table compute statistics;

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

select
 
t.partition_name,t.num_rows 
from
 
all_tab_partitions t 
where
 
table_name=
'table_name'
  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ORACLE 分区表 select