I'm completely new to sql and can't do that myself. So I need your help.
I want to sort values in column and then save changes. But I don't know how to do that.
Table looks like that:
Id | Name | SomeDescription
---------------------------
1 |Best | Description1
2 |Worth | Description2
3 |Good | Description3
I want to get something like that:
Id | Name | SomeDescription
---------------------------
1 |Best | Description1
2 |Good | Description3
3 |Worth | Description2
So I need to sort "id" and "name" columns.
I use following statement to sort values of "name" column:
SELECT * FROM games ORDER BY name ASC
But how can I sort the values of id column and save changes in table?
Please, help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…