I have an Oracle table like this:
fruit id
-------- -----
apple 1
plum 9
pear 55
orange 104
..
The id column numbers are wrong. How can I update the id of each row to be re-sequenced like this:
fruit id
-------- -----
apple 1
plum 2
pear 3
orange 4
What's the most efficient way to do this?