[英]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.