select index table oracle

Solutions on MaxInterview for select index table oracle by the best coders in the world

showing results for - "select index table oracle"
Mitzi
23 Jan 2016
1SELECT  *
2FROM    all_indexes
3WHERE   table_name = 'COUNTRY';
4
Elinor
22 Jun 2018
1SELECT *
2FROM ALL_INDEXES			-- or DBA_INDEXES or USER_INDEXES
3WHERE TABLE_NAME = 'MY_TABLE' AND OWNER = 'MY_OWNER';
4
5-- Indexes columns
6SELECT TABLE_NAME, INDEX_NAME, COLUMN_NAME
7FROM DBA_IND_COLUMNS		-- or ALL_IND_COLUMNS
8WHERE TABLE_OWNER = 'MY_OWNER' AND TABLE_NAME = 'MY_TABLE'
9ORDER BY TABLE_NAME, COLUMN_POSITION;