Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在不删除当前表的情况下更改它们出现的 MySQL中列的顺序(使用 phpMyAdmin XAMPP)?
尝试这个
ALTER TABLE `table_name` MODIFY COLUMN `column_name1` varchar(100) AFTER `column_name2`;
我不确定 phpMyAdmin,但您当然可以使用 SQL 查询来做到这一点:
ALTER TABLE `table` CHANGE COLUMN `oldname` `newname` *column_definition* [AFTER|BEFORE] `colname`;