Is it possible to increase the PK somehow?
I need to make it start at about 10000. Is there some sql statement I could execute directly in phpMyAdmin?
EDIT:
I need to be a bit more clear…
I need to update all rows with a PK over 2190 (about 2000 rows). Need to update them to start at about 10000 instead… So I do believe it is some sort of programming question…
Quoting the doc.So the question is about updating some set of values. Well, here’s one way to do it:
Still, you have to follow this with
ALTER TABLE tbl AUTO_INCREMENT = 10000; otherwise all the rows inserted after this UPDATE still get an old auto_increment. For example:Without
ALTER TABLE...'f'‘s id will be 6; with it – 10006.Here’s SQL Fiddle illustrating this concept.