龙空技术网

Oracle如何创建索引、删除索引、查询索引

T猕猴桃丶 389

前言:

现时我们对“oracle多列索引顺序”都比较看重,大家都需要剖析一些“oracle多列索引顺序”的相关内容。那么小编也在网络上收集了一些有关“oracle多列索引顺序””的相关资讯,希望小伙伴们能喜欢,小伙伴们快快来学习一下吧!

1、创建单一索引

create index 索引名称 on 表名(列名);

2、创建复合索引

create index 索引名称 on 表名(列名1,列名2);

3、删除索引

drop index 索引名称;

4、查询表的索引

select * from all_indexes where table_name = '表名称';

5、查询表的索引列

select* from all_ind_columns where table_name = '表名称';

标签: #oracle多列索引顺序