I have a table like
id - some data
1 - ...
2 - ...
4 - ...
5 - ...
8 - ...
12 - ...
The table is really long, with thousands IDs. Look at IDs, there are "empty" numbers between of them. I want to reorder all IDs to have no empty ones.
Table should look like
1 - ...
2 - ...
3 - ...
4 - ...
etc.
How would the query look like?
See Question&Answers more detail:os