📜  oracle 显示索引列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:11.994000             🧑  作者: Mango

代码示例1
SELECT TABLE_NAME, INDEX_NAME, COLUMN_NAME
FROM DBA_IND_COLUMNS            -- or ALL_IND_COLUMNS
WHERE TABLE_OWNER = 'MY_SCHEMA' AND TABLE_NAME = 'MY_TABLE'
ORDER BY TABLE_NAME, COLUMN_POSITION;