标签:mysql 5.7 ble 版本 mysq new rename dex name add
MySQL修改索引名称。
对于MySQL 5.7及以上版本,可以执行以下命令:
ALTER TABLE tbl_name RENAME INDEX old_index_name TO new_index_name
对于MySQL 5.7以前的版本,可以执行下面两个命令:
ALTER TABLE tbl_name DROP INDEX old_index_name ALTER TABLE tbl_name ADD INDEX new_index_name(column_name)
标签:mysql 5.7 ble 版本 mysq new rename dex name add
原文地址:http://www.cnblogs.com/xphdbky/p/7054395.html