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