我的字段状态是enum(1,2,3,4,5),我需要order 2,3 DESC,然后是1,4,5 DESC。执政官必须是3,2,5,4,1
发布于 2014-06-18 19:32:07
任意命令:
order by case [enum]
when 3 then 1
when 2 then 2
when 5 then 3
when 4 then 4
when 1 then 5
endhttps://stackoverflow.com/questions/24293352
复制相似问题