RENAME INDEX
AlterTableStmt:
KeyOrIndex:
Query OK, 0 rows affected (0.11 sec)
*************************** 1. row ***************************
Table: t1
Create Table: CREATE TABLE `t1` (
`c1` int(11) NOT NULL,
KEY `col1` (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.09 sec)
*************************** 1. row ***************************
Table: t1
`id` int(11) NOT NULL AUTO_INCREMENT,
`c1` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `c1` (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
1 row in set (0.00 sec)
语句与 MySQL 完全兼容。如发现任何兼容性差异,请在 GitHub 上提交 。