Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle list index on table

SELECT *
FROM ALL_INDEXES		-- or DBA_INDEXES or USER_INDEXES
WHERE TABLE_NAME = 'MY_TABLE' AND OWNER = 'MY_OWNER';

-- Index columns
SELECT TABLE_NAME, INDEX_NAME, COLUMN_NAME
FROM DBA_IND_COLUMNS
WHERE TABLE_OWNER = 'MY_OWNER' AND TABLE_NAME = 'MY_TABLE'
ORDER BY TABLE_NAME, COLUMN_POSITION;
Comment

PREVIOUS NEXT
Code Example
Sql :: t sql remove last character from string 
Sql :: python mysql check if database exists 
Sql :: oracle nls session 
Sql :: mysql full outer join java 
Sql :: sql set no lmit 
Sql :: mysql show charset 
Sql :: capitalize 1st letter in sql server 
Sql :: my sql version 
Sql :: sql server user permissions and roles 
Sql :: oracle export view ddl 
Sql :: get parameter value in mysql trigger 
Sql :: sql get guid 
Sql :: query string starts with vowels 
Sql :: mysql tinyint max value 
Sql :: mysql delete all where id is not equal 
Sql :: mysql best varchar length size 
Sql :: postgresql CREATE EXTENSION pgcrypto 
Sql :: delete all table oracle 
Sql :: spark sql convert string to date 
Sql :: oracle create program if no exists 
Sql :: Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149 (Help) 
Sql :: mysqldump: couldn 
Sql :: display index in sql 
Sql :: oracle create datafile 
Sql :: mysql select last 10 rows 
Sql :: add unique constraint sql server multiple columns 
Sql :: oracle index partition 
Sql :: alter table add column and foreign key mysql 
Sql :: simple project for database 
Sql :: postgres database sizes 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =