I would like to add a new autoincrement column to a pre-existing table. However, I need the ids that are in that column to start at a particular value, ie
alter table MyTable
add column MyColumn int unsigned not null primary key auto_increment=999999;
Is this possible? I tried issuing:
alter table MyTable auto_increment=999999;
before I added the column, but it had no effect. Because adding the column will automatically generate the ids, it is not sufficient to run the second statement after the first.