smoothcat11
asked on
MySQL SQL Command, Reorder
I have a MySQL database. If possible, I'd like 1 SQL Command to do this. The id's on it are all jumbled up and I would like to keep the order that the records are in the database, but change the id's so that they are consecutive. eg
now - (1,a)(3,b),(4,c),(6,d),(8, e),(9,f)
after - (1,a),(2,b),(3,c),(4,d),(5 ,e),(6,f)
Thanks.
now - (1,a)(3,b),(4,c),(6,d),(8,
after - (1,a),(2,b),(3,c),(4,d),(5
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You may want to add an order by to the select for the data you wish to have in sequence too.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.