sql 按字段指定值排序
摘要:
order by case `A1` when a2 then 1 // 当值为a2,排在第一个 when a3 then 2 // 当值为a3,排在第二个 when a1 then 3 // 当值为a1,排在第三个 end asc // 按上面顺序,正序排列(也可为desc) order by c 阅读全文
posted @ 2018-08-14 10:55 cn2025 阅读(1504) 评论(0) 推荐(0)
浙公网安备 33010602011771号