DROP INDEX

2024-06-28 05:30:31  Updated

Purpose

You can use this statement to drop an index. Maintenance costs increase with the number of indexes. Therefore, you need to drop unnecessary indexes.

You need to wait for a period before the dropping takes effect.

Syntax

DROP INDEX [schema.]index_name;

Parameters

Parameter Description
schema The name of the schema.
index_name The name of the index.

Examples

Drop the index tbl1_idx1.

obclient> DROP INDEX tbl1_idx1;
Query OK, 0 rows affected

Contact Us