What you want to accomplish, IMHO, is not a very good idea. Take this into account; there are other Table
s that might be associated with the primary key
that you have just deleted.
Assuming that you have existing values on other tables associated with the deleted primary key
:
When you insert a new entry with primary key
that was taken from the gap, you will have then values that are associated with the other tables. You wouldn't want that. Unless ofcourse, if you clean ALL of your tables when you delete a primary key, and that's a lot of work. Delete Cascade
might not be enough for the most.