To rearrange columns in MySQL you can use the following snippet.

ALTER TABLE TABLENAME MODIFY COLUMN COLUMNNAME TYPE AFTER COLUMNNAME

2 thought on “How to rearrange columns in MySQL”

Leave a Reply