Sometimes we need to make existing column as first column. For example you created a table and added column "id" after creating the column. Now you want to make "id" column as first column, then you can do this easily by using ALTER command as below:
ALTER TABLE cities CHANGE id id INT(11) NOT NULL FIRST
after running above query, "id" column will become first column of "cities" table.
Hope this will help you :)
0 Comment(s)