How to move columns in a MySQL table?
If empName is a VARCHAR(50) column: ALTER TABLE Employees MODIFY COLUMN empName VARCHAR(50) AFTER department; EDIT Per the comments, you can also do this: ALTER TABLE Employees CHANGE COLUMN empName empName VARCHAR(50) AFTER department; Note that the repetition of empName is deliberate. You have to tell MySQL that you want to keep the same column … Read more