niudaxianren

oracle创建、删除索引等操作

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=\'表名\';
————————————————
版权声明:本文为CSDN博主「喜剧新人」的原创文章,遵循CC 4.0 by-sa版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/farxix/article/details/80162437

发表于 2019-08-22 09:46  牛大闲人  阅读(41976)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-10-22
  • 2021-11-06
  • 2021-07-04
  • 2022-02-23
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
相关资源
相似解决方案