TechieHints SOFTWARE

How to move a column to first in mysql ?

Use the following query:

ALTER TABLE table_name CHANGE COLUMN column_name column_name INTEGER NOT NULL AUTO_INCREMENT FIRST;

 

INTEGER NOT NULL AUTO_INCREMENT FIRST this will be changed based on the column data type & constraint

Leave a comment