I have a table with 50 rows, id
column as primary key, autoincrement.
At the beginning id
values where from 1 - 50;
After deleting a row, for example id=1
, and inserting a new row, this will have id=51
.
How can I set the new row to take first empty place, it this case id=1
automatically, instead of 51
;
Also if id=5
is deleted, the next inserted row should have id=5
an so on.