“Daftar Oracle Tabel Partisi” Kode Jawaban

Bagaimana melihat semua partisi tabel di Oracle

SELECT * FROM ALL_TAB_PARTITIONS;
Delta Sierra

Daftar Oracle Tabel Partisi

-- List of partitioned tables
SELECT DISTINCT P.TABLE_OWNER, P.TABLE_NAME, count(*) AS NB_PARTITIONS, 
	SP.NB_SUBPARTITIONS
FROM DBA_TAB_PARTITIONS P
LEFT JOIN (SELECT DISTINCT TABLE_OWNER, TABLE_NAME, count(*) AS NB_SUBPARTITIONS
           FROM DBA_TAB_SUBPARTITIONS
           GROUP BY TABLE_OWNER, TABLE_NAME, PARTITION_NAME
          ) SP
ON P.TABLE_OWNER = SP.TABLE_OWNER AND P.TABLE_NAME = SP.TABLE_NAME
WHERE P.TABLE_OWNER NOT IN ('SYS', 'SYSTEM')
GROUP BY P.TABLE_OWNER, P.TABLE_NAME, SP.NB_SUBPARTITIONS
ORDER BY P.TABLE_OWNER, P.TABLE_NAME;
VasteMonde

Jawaban yang mirip dengan “Daftar Oracle Tabel Partisi”

Pertanyaan yang mirip dengan “Daftar Oracle Tabel Partisi”

Lebih banyak jawaban terkait untuk “Daftar Oracle Tabel Partisi” di Sql

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya