PHP基础PHP教程php框架JavaScript
asp.netAJAX正则表达式ASP
order by
case `state`
when 2 then 1 // 当值为2,排在第一个
when 1 then 2 // 当值为1,排在第二个
when 3 then 3 // 当值为3,排在第三个
end
asc // 按上面顺序,正序排列(也可为desc)
SQL根据值排序
标签:end des cas 排列 stat when state esc case