PHP myAdmin - Change Field Order (Move Up Or Down)

2020-02-17 04:18发布

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

9条回答
爷、活的狠高调
2楼-- · 2020-02-17 04:54

Another alternative:

CREATE new_table SELECT columns-in-new-order FROM old_table;
查看更多
闹够了就滚
3楼-- · 2020-02-17 04:55

If you have phpMyAdmin 4.0.0+, you can use the phpMyAdmin Feature under Structure:

查看更多
神经病院院长
4楼-- · 2020-02-17 04:55

Something like this will help

ALTER TABLE Person MODIFY COLUMN last_name VARCHAR(50) AFTER first_name;

This will move last_name right after first_name in order.

查看更多
登录 后发表回答