MySQL order by two values

前端 未结 6 1886
清酒与你
清酒与你 2021-01-19 02:43

In short, I have a game of sorts, and the score board for it shows the score of the player at the end + how long they took to achieve it. I need to order my MySQL results so

6条回答
  •  醉话见心
    2021-01-19 03:34

    You've to use this query:

    select * from boobmatch_highscores order by time ASC, t_score DESC
    

    Now time is displayed ascending order and score is displayed descending order.

提交回复
热议问题