MySQL order by two values

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

    you should use an integer column for time instead of a varchar,
    that's mean convert 00:19:32 to just 1172 seconds,
    then is pretty easy for sort

提交回复
热议问题