mysql order by多字段排序,在同一表中必須按字段順序,不然以最後一字段的排序爲準,其餘無效。 mysql
如:ORDER BY `user`.`state` DESC , `user`.`order_by` ASC sql
state字段在order_by字段前面 spa