MySQL order by two values

前端 未结 6 1887
清酒与你
清酒与你 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:08

    You should be use below code.. Its working.

    $query = "SELECT field1, field2 from tablename ORDER BY field1 DESC, field2 DESC";
    

提交回复
热议问题