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 :: if role exists sql 
Sql :: Write a PL/SQL to print even numbers upto 100. 
Sql :: case vhdl 
Sql :: logical operators in sql 
Sql :: how to average max mysql 
Sql :: mysql range of dates overlap 
Sql :: how to join multiple table in mysql 
Sql :: psql concat string and int 
Sql :: insufficient privileges while creating view in sql oracle 
Sql :: java sql connection close 
Sql :: sql not in operator 
Sql :: Syntax error or access violation: 1075 Incorrect table def inition; there can be only one auto column and it must be defined as a key 
Sql :: macos oracle docker oracle11g 
Sql :: sql order by except one row 
Sql :: how to connect sqlalchemy to mysql and deploy it 
Sql :: oracle logfile switch 
Sql :: how to declare variable date in mysql 
Sql :: view column type sql server 
Sql :: into operator in sql 
Sql :: list all functions and procedures in postgres query 
Sql :: pl sql command line run 
Sql :: delete all from mysql table 
Sql :: initcap in mysql 
Sql :: mysql date comparison with formatting 
Sql :: get substract count sql 
Sql :: how to find 2nd highest salary in mysql 
Sql :: select row with latest date mysql 
Sql :: asp.net core sql server stored procedure 
Sql :: how to exit mysql terminal 
Sql :: how to define a non primary composite key in sql 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =