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

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*