RENAME TABLE

    1. CREATE TABLE t1 (a int);
    1. Query OK, 0 rows affected (0.12 sec)
    1. +----------------+
    2. +----------------+
    3. +----------------+
    4. 1 row in set (0.00 sec)
    1. RENAME TABLE t1 TO t2;
    1. SHOW TABLES;
    1. +----------------+
    2. +----------------+
    3. | t2 |
    4. +----------------+
    5. 1 row in set (0.00 sec)

    RENAME TABLE 语句与 MySQL 完全兼容。如发现任何兼容性差异,请在 GitHub 上提交 。