select * from (
select * from account order by num desc,createDate desc
) a order by a.num desc,date(a.createDate)>=‘2021-09-11‘ desc,a.is_sign desc
先按num排序
然后按创建最新时间排序,最新时间是最近七天
然后再按is_sign排序
2023-09-24 20:31:57
select * from (
select * from account order by num desc,createDate desc
) a order by a.num desc,date(a.createDate)>=‘2021-09-11‘ desc,a.is_sign desc
先按num排序
然后按创建最新时间排序,最新时间是最近七天
然后再按is_sign排序