时间:2021-07-01 10:21:17 帮助过:27人阅读
select addDay,status from table where status < 6 order by addDay desc,status ascunion allselect addDay,status from table where status >= 6 order by addDay desc,status asc
order by case when status<6 then addDay else 1 end desc,status asc
order by case when status<6 then addDay else 1 end desc,addDaydesc,status asc
select * from table order by if(status<6 , 1, 0 ) desc, addDay desc,status asc
select * from tbl_name order by status>=6, addDay desc, status asc
谢谢各位了,问题已经解决了