MySQL order by two values

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

    You query is supposed to work perfectly. If you have any issues just enclose the field names in quotes like so:

    $sql1 = "SELECT * FROM boobmatch_highscores ORDER BY `t_score` DESC, `time` ASC";
    

    Guessing it's MySQL, else the quotes won't be necessary

提交回复
热议问题