alter tabel with autoincrement code example
Example 1: increment integer in table sql
UPDATE myTable
SET ID = ID + 1
Example 2: alter table auto_increment
ALTER TABLE ALLITEMS CHANGE itemid itemid INT(10)AUTO_INCREMENT PRIMARY KEY;
UPDATE myTable
SET ID = ID + 1
ALTER TABLE ALLITEMS CHANGE itemid itemid INT(10)AUTO_INCREMENT PRIMARY KEY;