信息发布→ 登录 注册 退出

oracle怎样删除索引

发布时间:2022-01-21

点击量:
在oracle中,可以利用“drop index”语句删除索引,该语句的作用就是删除指定的索引,语法为“drop index 索引名;”。

本教程操作环境:Windows10系统、Oracle 11g版、Dell G3电脑。

oracle怎样删除索引

drop index index_name;

1、创建索引

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

推荐教程:《Oracle教程》

标签:# oracle  # 可以利用  # index_name  # pre  # sql  # toolbar  # class  # brush  # drop  # index  # blockquote  
在线客服
服务热线

服务热线

4008888355

微信咨询
二维码
返回顶部
×二维码

截屏,微信识别二维码

打开微信

微信号已复制,请打开微信添加咨询详情!