两个同时使用:要求排序其他字段

select c1,max(c2) as a from table group by c1 order by a;

in查询按照排序结果:

select * from table order by field(c1,1,2,3,4....)

 

posted on 2018-01-31 10:47  人生旅途的人  阅读(1115)  评论(0编辑  收藏  举报