say, i have a table t with only 2 fields, like below
ID VALUE
---------------------
0 100
0 103
0 101
0 102
...
...
...
0 110,000,000
i need to update the id fields using their ordered sequence and change the table , like below:
ID VALUE
---------------------
1 100
2 101
3 102
4 103
...
...
...
109999901 110,000,000
How do i write the sql script in mysql to make this happen? Seems like in Oracle it's much easier.