Skip to content

MySQL – insert a new index id column at the beginning of the table

ALTER TABLE my_table ADD id INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST

Published inCoding