简介
select job, sum(num) as cnt from
resume_info
where resume_info.date < '2026-01-01' and resume_info.date >= '2025-01-01'
group by job
order by cnt desc;
可以使用year函数提取年份 效率会高很多
select job, sum(num) as cnt
from resume_info
where year(date) = 2025
group by job
order by cnt desc;
---------------------------我的天空里没有太阳,总是黑夜,但并不暗,因为有东西代替了太阳。虽然没有太阳那么明亮,但对我来说已经足够。凭借着这份光,我便能把黑夜当成白天。我从来就没有太阳,所以不怕失去。
--------《白夜行》