在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怎样删除索引的详细内容,更多请关注php中文网其它相关文章!
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。