select authseq , authstate , transtime   from mgt.mgt_mauthqueue 

ORDER BY 
CASE 
WHEN authstate='1' THEN 1 
WHEN authstate='0' THEN 2 
WHEN authstate='5' THEN 3 
ELSE 4  
END       ,  transtime DESC

Order By 排序的高级引用  

可自定义排序方式

 MySql数据库排序问题

 

 

相关文章:

  • 2021-04-30
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2021-07-18
  • 2021-11-26
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案