I have a web application where I interact with a MySql database. When I delete a record, it seems that its slot is reused the next time I create a new record. Since each record has a sequential primary key, the next record will have a new key say 5, but the new record will be placed in the last emptied spot, say where record number 2 used to be. Is there a way to have new records added directly at the bottom of the list? Is there a way to do that with MySQL Query Browser perhaps?
This is an example of what I am describing:
1 userName1 password1 2 userName2 password2 --> next operation will delete this record 3 userName3 password3 4 userName4 password4
when record #2 is gone, next time I do a new add, record #5 takes up number 2 spot:
1 userName1 password1 5 userName5 password5 3 userName3 password3 4 userName4 password4
Is there a recommended way to instruct MySQL (perhaps at table creation) that new records should only be added at the bottom of the list? so, we would like to disable the automatic record-reuse.
Thanks in advance for your help Kindest regards