Sort MySQL results alphabetically, but with numbers last

前端 未结 3 1784
天命终不由人
天命终不由人 2020-12-10 16:55

Often, sorting is done with symbols sorted to the top, like 0 or * or &. This is the default way that mysql sorts; numbers and sy

3条回答
  •  [愿得一人]
    2020-12-10 17:16

    This works for me:

    SELECT * FROM `yourTable` ORDER BY `yourDatabase`.`yourColumn`  ASC
    

提交回复
热议问题