I have a blog with different posts. Let's say I have 10 posts. When I choose to delete the latest post with DELETE FROM table WHERE id = 10
, it deletes it.
But then, the next post I make, gets the ID 11.
So my database looks like:
ID | post
11 | foo
9 | bar
But the number 10 I delete no-longer exists. How can I make it so that the next post I'd make gets ID 10?
The ID
column is auto-increment.