Oracle索引

1.创建索引

CREATE INDEX index_telephone ON tab_personinfo(telephone);    --单一索引

CREATE INDEX index_telephone_custid on tab_personinfo(telephone,custid);  --复合索引

2.删除索引
DROP INDEX index_telephone;

3.查询索引

select * from all_indexes where table_name = 'tab_personinfo';  --查询表的索引

select * from all_ind_columns where table_name = 'tab_personinfo';  --查询表的索引列

posted @ 2020-04-19 23:12  借你耳朵说爱你  阅读(186)  评论(0编辑  收藏  举报