lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/dropIndex.sql

28 lines
867 B
MySQL
Raw Normal View History

-- https://dev.mysql.com/doc/refman/8.0/en/drop-index.html
/* DROP INDEX index_name ON tbl_name
[algorithm_option | lock_option] ...
algorithm_option:
ALGORITHM [=] {DEFAULT | INPLACE | COPY}
lock_option:
LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE} */
DROP INDEX `PRIMARY` ON t ALGORITHM = DEFAULT;
DROP INDEX `PRIMARY` ON t ALGORITHM = INPLACE;
DROP INDEX `PRIMARY` ON t ALGORITHM = COPY;
DROP INDEX `PRIMARY` ON t LOCK = DEFAULT;
DROP INDEX `PRIMARY` ON t LOCK = NONE;
DROP INDEX `PRIMARY` ON t LOCK = SHARED;
DROP INDEX `PRIMARY` ON t LOCK = EXCLUSIVE;
DROP INDEX `PRIMARY` ON t ALGORITHM DEFAULT;
DROP INDEX `PRIMARY` ON t ALGORITHM INPLACE;
DROP INDEX `PRIMARY` ON t ALGORITHM COPY;
DROP INDEX `PRIMARY` ON t LOCK DEFAULT;
DROP INDEX `PRIMARY` ON t LOCK NONE;
DROP INDEX `PRIMARY` ON t LOCK SHARED;
DROP INDEX `PRIMARY` ON t LOCK EXCLUSIVE;