DROP INDEX 문을 사용하여 인덱스를 삭제할 수 있다. 삭제할 인덱스를 지정하는 방법에는 다음과 같은 두 가지 방법이 있다.
DROP [ REVERSE ] [ UNIQUE ] INDEX index_name
[ON table_name ( attr_name [ {, attr_name } ...) ] [ ; ]
DROP [ REVERSE ] [ UNIQUE ] INDEX
ON table_name ( attr_name [ {, attr_name } ...) [ ; ]
다음은 인덱스를 삭제하는 여러 가지 방법을 보여주는 예제이다.
DROP INDEX ON game(medal);
DROP INDEX game_date_idx;
DROP REVERSE INDEX gold_index ON participant(gold);
DROP INDEX name_nation_idx ON athlete(name, nation_code);