I have MySQL Table with columns id, name, someInt, otherInt
. After many deletes I have big holes of the id's of adjacent rows. How could I rewrite my db to fix this?
Example:
From
id name someInt otherInt
1 Michel 7 9
2 John 12 3
5 Peter 5 6
9 George 20 21
To
id name someInt otherInt
1 Michel 7 9
2 John 12 3
3 Peter 5 6
4 George 20 21