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>
15 lines
638 B
SQL
15 lines
638 B
SQL
-- https://dev.mysql.com/doc/refman/8.0/en/alter-table-partition-operations.html
|
|
|
|
ALTER TABLE t1 ADD PARTITION (PARTITION p3 VALUES LESS THAN (2002));
|
|
ALTER TABLE t1 DROP PARTITION p0, p1;
|
|
ALTER TABLE t1 DISCARD PARTITION p2, p3 TABLESPACE;
|
|
ALTER TABLE t1 IMPORT PARTITION p2, p3 TABLESPACE;
|
|
ALTER TABLE t1 TRUNCATE PARTITION p0;
|
|
ALTER TABLE t1 TRUNCATE PARTITION p1, p3;
|
|
ALTER TABLE t2 COALESCE PARTITION 2;
|
|
ALTER TABLE t1 ANALYZE PARTITION p1, ANALYZE PARTITION p2;
|
|
ALTER TABLE t1 ANALYZE PARTITION p1, CHECK PARTITION p2;
|
|
ALTER TABLE t1 ANALYZE PARTITION p1, p2;
|
|
ALTER TABLE t1 ANALYZE PARTITION p1;
|
|
ALTER TABLE t1 CHECK PARTITION p2;
|