Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to see all table partition in oracle

SELECT * FROM ALL_TAB_PARTITIONS;
Comment

oracle list partitioned tables

-- 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;
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle limit user tablespace 
Sql :: last 6 months postgresql 
Sql :: mssql int max value 
Sql :: sql string_agg 
Sql :: Failed to connect to localhost:1433 - self signed certificate 
Sql :: mysql order by desc limit 
Sql :: oracle add months to sysdate 
Sql :: oracle stop 
Sql :: sort by last three charecter in sql 
Sql :: woocommerce mysql price table 
Sql :: reset sql auto increment 
Sql :: find most frequent value in sql column 
Sql :: get table column names sql laravel 
Sql :: add timestamp column to existing table t-sql 
Sql :: create column sql 
Sql :: mysql sysdate - 1 day 
Sql :: hour and minute between two datatime sql 
Sql :: oracle grants 
Sql :: ubuntu install postgresql 12 
Sql :: mysql data types 
Sql :: this week mysql 
Sql :: How to reset forgotten postgresql password 
Sql :: oracle sysdate - 1 month 
Sql :: sql display number without decimals 
Sql :: change default role snowflake 
Sql :: sql order by case 
Sql :: sql check if date is between 2 dates 
Sql :: drop unique key constraint in sql server 
Sql :: concate update mysq 
Sql :: mysql date time string format python 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =