Answers for "select index table oracle"

SQL
0

how to select an index in oracle sql

SELECT  *
FROM    all_indexes
WHERE   table_name = 'COUNTRY';
Posted by: Guest on January-26-2021
0

select index table oracle

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

-- Indexes columns
SELECT TABLE_NAME, INDEX_NAME, COLUMN_NAME
FROM DBA_IND_COLUMNS		-- or ALL_IND_COLUMNS
WHERE TABLE_OWNER = 'MY_OWNER' AND TABLE_NAME = 'MY_TABLE'
ORDER BY TABLE_NAME, COLUMN_POSITION;
Posted by: Guest on May-06-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language