oracle怎样删除索引

 2022-07-28    556  

oracle怎样删除索引

drop index index_name;

1、创建索引

oracle怎样删除索引

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

2、删除索引

drop index 索引名;

3、创建组合索引

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

4、查询索引

--根据索引名,查询表索引字段

select * from user_ind_columns where index_name='索引名';

--根据表名,查询一张表的索引

select * from user_indexes where table_name='表名';


原文链接:https://77isp.com/post/2282.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。