PHP myAdmin - 更改字段顺序(向上或向下移动)

2022-01-05 00:00:00 php mysql phpmyadmin

如何使用 PHP myAdmin 在不删除字段并重新插入的情况下更改表字段的顺序?

How do I change the order of my table fields without deleting the field and re-inserting it, using PHP myAdmin?

推荐答案

ALTER TABLE `table_name` MODIFY `column_you_want_to_move` DATATYPE AFTER `column`

DATATYPE 类似于 DATETIME 或 VARCHAR(20) ..etc

DATATYPE is something like DATETIME or VARCHAR(20) ..etc

相关文章