[英]Oracle 12c - which index should be used for a table with partitions and sub-partitions
[英]Oracle 12c - how to see all partitions and sub-partitions for some table and number of records for each
我必须探索表't1'。
如何查看:
这提供了一个良好的开端,但需要更多信息(上图):
select * from ALL_PART_TABLES where table_name = 't1'
谢谢。
下面的查询给出了 SUBPARTITION 中的行数
select num_rows, PARTITION_NAME , SUBPARTITION_NAME
FROM ALL_TAB_SUBPARTITIONS
where table_name = 'yourtable';
下面的查询给出了 PARTITION 中的行数以及子分区的数量。
select num_rows, PARTITION_NAME, SUBPARTITION_COUNT
FROM ALL_TAB_SUBPARTITIONS
where table_name = 'yourtable';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.