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 = ‘表名称’;

发布了64 篇原创文章 · 获赞 16 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/s_156/article/details/103403469