【问题标题】:Find columns which are indexed in a given table查找在给定表中索引的列
【发布时间】:2013-04-08 14:05:39
【问题描述】:

我试图找出为给定表创建索引的列。我正在使用以下查询来了解表的索引名称:

select index_name from dba_indexes where table_name='TABLE_NAME';

请帮助我如何获取创建索引的列。 如何知道索引是唯一索引还是非唯一索引。

【问题讨论】:

    标签: sql oracle indexing


    【解决方案1】:

    使用all_ind_columns

    手册中的更多详细信息:http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_1100.htm#i1577532

    【讨论】:

      猜你喜欢
      • 2012-12-10
      • 2011-07-05
      • 2013-03-28
      • 2021-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-31
      • 1970-01-01
      相关资源
      最近更新 更多