oracle怎樣刪除索引

oracle中,可以利用“drop index”語句刪除索引,該語句的作用就是刪除指定的索引,語法為“drop index 索引名;”。

oracle怎樣刪除索引

本教程操作環(huán)境:Windows10系統(tǒng)、Oracle 11g版、Dell G3電腦。

oracle怎樣刪除索引

drop index index_name;

1、創(chuàng)建索引

create?index?索引名?on?表名(列名);

2、刪除索引

drop?index?索引名;

3、創(chuàng)建組合索引

create?index?索引名?on?表名(列名1,,列名2);

4、查詢索引

--根據(jù)索引名,查詢表索引字段 select?*?from?user_ind_columns?where?index_name='索引名'; --根據(jù)表名,查詢一張表的索引 select?*?from?user_indexes?where?table_name='表名';

推薦教程:《Oracle教程

以上就是

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊13 分享