Re:Mistakes Beginners Make When Working with Databases
by billmalarky on Wednesday June 08, 2016 @01:20PM
(#11863860)
How old was the version of mysql? Even years ago I remember mysql stored the auto increment value separately.
* New record is created, with new ID.
* Record is deleted.
* Database is shut down (cleanly).
* Database is started again.
* New record is created. It gets the old ID, because it's just looking at the current max(ID) or something like that.