摘要: 多条件排序可以通过在order by语句后面使用case when then条件语句来实现。 select * from 表名 ORDER BY case when 条件 then 0 else 1 end 例子: 1.创建表case_test 共有id,case_type,case_locatio 阅读全文
posted @ 2017-06-16 10:49 大象踢足球 阅读(11152) 评论(1) 推荐(0) 编辑