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>
14 lines
358 B
SQL
14 lines
358 B
SQL
-- https://dev.mysql.com/doc/refman/8.0/en/table.html
|
|
|
|
/* TABLE table_name [ORDER BY column_name] [LIMIT number [OFFSET number]] */
|
|
|
|
SELECT * FROM t;
|
|
TABLE t;
|
|
TABLE t ORDER BY b;
|
|
TABLE t LIMIT 3;
|
|
TABLE t ORDER BY b LIMIT 3;
|
|
TABLE t ORDER BY b LIMIT 3 OFFSET 2;
|
|
|
|
SELECT * FROM t1 WHERE a IN (SELECT x FROM t2);
|
|
SELECT * FROM t1 WHERE a IN (SELECT * FROM t2);
|