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

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....)

 

相关文章:

  • 2021-05-31
  • 2022-01-22
  • 2022-12-23
  • 2021-11-23
  • 2022-02-07
  • 2022-12-23
  • 2021-06-13
  • 2022-01-08
猜你喜欢
  • 2021-12-19
  • 2021-11-13
  • 2021-09-21
  • 2021-05-12
  • 2021-09-21
  • 2021-05-30
  • 2019-01-31
相关资源
相似解决方案