1.唯一索引的创建 

create unique index uq_goodsid on goods (goodsid)

2.强制使用索引

select /*+ index(goods uq_goodsid)*/* from goods

3.复合索引的创建

create index ind_suid_goodsid on su (suid,goodsid)

4.查看索引

select * from user_indexes where table_name = 'SU'

或者

select * from all_indexes where table_name = 'SU'

5.重命名索引

alter index ind_suid_goodsid rename to ind_suid_goodsid2

6.重建索引

alter index ind_suid_goodsid2 rebuild

7.删除索引

drop index ind_suid_goodsid2

 

 

相关文章:

  • 2021-04-25
  • 2021-06-21
  • 2021-09-03
  • 2021-11-24
  • 2021-11-19
  • 2021-10-18
  • 2022-01-29
  • 2021-12-11
猜你喜欢
  • 2022-01-28
  • 2022-03-02
  • 2021-10-04
  • 2021-10-04
  • 2022-12-23
相关资源
相似解决方案