DROP INDEX¶
Drops a secondary index.
- See also:
CREATE INDEX , SHOW INDEXES , CREATE HYBRID TABLE , DROP TABLE , DESCRIBE TABLE , SHOW HYBRID TABLES
Syntax¶
Parameters¶
table_nameSpecifies the identifier for the table.
index_nameSpecifies the identifier for the index.
Usage notes¶
- This command can only be used to drop a secondary index. To drop an index that is used to enforce a UNIQUE or FOREIGN KEY constraint, use the ALTER TABLE command to drop the constraint.
- Indexes cannot be undropped.
- When the IF EXISTS clause is specified and the target object doesn’t exist, the command completes successfully without returning an error.
Examples¶
Removes the secondary index c_idx on table t0: