RENAME INDEX

    AlterTableStmt:

    KeyOrIndex:

    1. Query OK, 0 rows affected (0.11 sec)
    1. *************************** 1. row ***************************
    2. Table: t1
    3. Create Table: CREATE TABLE `t1` (
    4. `c1` int(11) NOT NULL,
    5. KEY `col1` (`c1`)
    6. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
    7. 1 row in set (0.00 sec)
    1. Query OK, 0 rows affected (0.09 sec)
    1. *************************** 1. row ***************************
    2. Table: t1
    3. `id` int(11) NOT NULL AUTO_INCREMENT,
    4. `c1` int(11) NOT NULL,
    5. PRIMARY KEY (`id`),
    6. KEY `c1` (`c1`)
    7. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
    8. 1 row in set (0.00 sec)

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