SyntaxFix
Write A Post
Hire A Developer
Questions
If you don't care whether the auto-id is used as PRIMARY KEY, you can just do
PRIMARY KEY
ALTER TABLE `myTable` ADD COLUMN `id` INT AUTO_INCREMENT UNIQUE FIRST;
I just did this and it worked a treat.