I have about 23 000 records in my database and there are twenty duplicates from 4921 to 4940. I could easily delete the duplicates, but then my id column (auto-increment) value would be incorrect. So my question: is there a way to change the id column for records with id greater than 4940 without making thousands of queries?
EDIT: I realise the title is a little vague…. I’ll edit it now.
I don’t understand why you’d want to do this, or why it matters.
Or is this a “smart key” of some kind?
I would imagine that you could easily do it with: