lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/repairTable.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

15 lines
487 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/repair-table.html
/* REPAIR [NO_WRITE_TO_BINLOG | LOCAL]
TABLE tbl_name [, tbl_name] ...
[QUICK] [EXTENDED] [USE_FRM] */
REPAIR NO_WRITE_TO_BINLOG TABLE t1, t2, t3 QUICK EXTENDED USE_FRM;
REPAIR LOCAL TABLE t1, t2, t3 QUICK EXTENDED USE_FRM;
REPAIR NO_WRITE_TO_BINLOG TABLE t1, t2, t3 QUICK EXTENDED;
REPAIR NO_WRITE_TO_BINLOG TABLE t1 QUICK EXTENDED;
REPAIR LOCAL TABLE t1, t2, t3 QUICK;
REPAIR TABLE t1, t2, t3;
REPAIR TABLE t1;