MySQL, Oracle, Linux, 软件架构及大数据技术知识分享平台

网站首页 > 数据库 / 正文

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

2024-11-26 17:13 huorong 数据库 7 ℃ 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 = '表名称';

Tags:oracle 删除 表

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言