专业编程教程与实战项目分享平台

网站首页 > 技术文章 正文

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

ins518 2024-10-13 06:07:22 技术文章 18 ℃ 0 评论

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

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表