lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/dropIndex.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

28 lines
867 B
SQL

-- 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;