mysql日期格式转换

DATE_FORMAT(date,format)
%Y-年份
%m-月份
%M-月名
%K-小时
select job,date_format(date,'%Y-%m')as mon,sum(num)as cnt
from resume_info
where date like '2025%'
group by job,mon
order by mon desc,cnt desc;