Created
February 6, 2017 01:42
-
-
Save boy3vil/0b2e319485b2957968fc73659fa632bb to your computer and use it in GitHub Desktop.
Change the column position of MySql table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+----+------+-------+----------+ | |
| id | name | email | password | | |
+----+------+-------+----------+ | |
to | |
+----+----------+------+-------+ | |
| id | password | name | email | | |
+----+----------+------+-------+ | |
ALTER TABLE table_name MODIFY password varchar(20) AFTER id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment