428d851913
* 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>
28 lines
867 B
SQL
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;
|