MySQL调整字段顺序

来源: 2024-07-05 23:54:28 播报

格式:

alter table 表名 change 字段名 新字段名 字段定义 after 字段名 #调整到这个字段后;

示例:

mysql> alter table article change title title varchar(250) not Null after author;
Query OK, 2 rows affected (0.26 sec)
Records: 2  Duplicates: 0  Warnings: 0