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

20 lines
433 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/check-table.html
/* CHECK TABLE tbl_name [, tbl_name] ... [option] ...
option: {
FOR UPGRADE
| QUICK
| FAST
| MEDIUM
| EXTENDED
| CHANGED
} */
CHECK TABLE t1, t2, t3 FOR UPGRADE QUICK FAST MEDIUM EXTENDED CHANGED;
CHECK TABLE t1 FOR UPGRADE QUICK FAST MEDIUM EXTENDED CHANGED;
CHECK TABLE t1 FOR UPGRADE QUICK;
CHECK TABLE t1 FAST MEDIUM EXTENDED CHANGED;
CHECK TABLE t1;