Outdated Version

You are viewing an older version of this section. View current production version.

DROP INDEX

Drop the specified index on the specified table.

DROP INDEX index_name ON tbl_name

Notes

  • index_name is the name of the index you want to drop.
  • tbl_name is the name of a table in a MemSQL database.
  • This command must be run on the master aggregator node (see Node Requirements for MemSQL Commands ).
  • This command will attempt to run as an online operation, but in certain cases cannot. See ALTER TABLE for more information. Operations which must be run offline cannot be run on distributed tables.

Example

memsql> CREATE INDEX seq_index ON mytbl (seq);
Query OK, 0 rows affected (9.11 sec)
Records: 0  Duplicates: 0  Warnings: 0