how to find all indexes and their columns for tables, views and synonyms in oracle

后端 未结 2 2067
孤城傲影
孤城傲影 2020-12-13 18:38

I jotted down the following query which will list the index name and its columns for a particular table:

select 
b.uniqueness, a.index_name, a.table_name, a.         


        
相关标签:
2条回答
  • 2020-12-13 19:06

    Your query should work for synonyms as well as the tables. However, you seem to expect indexes on views where there are not. Maybe is it materialized views ?

    0 讨论(0)
  • 2020-12-13 19:08

    SELECT * FROM user_cons_columns WHERE table_name = 'table_name';

    0 讨论(0)
提交回复
热议问题