标签:esc orm style for from div 排序 sql rom
1 SELECT DATE_FORMAT(releaseDate,"%Y年%m月") AS dates,COUNT(*) FROM t_diary GROUP BY DATE_FORMAT(releaseDate,"%Y年%m月")
ORDER BY DATE_FORMAT(releaseDate,"%Y年%m月") DESC ;
DATE_FORMAT();按照格式对某个日期操作
ORDER BY 排序
DESC 降序
标签:esc orm style for from div 排序 sql rom
原文地址:https://www.cnblogs.com/zyxsblogs/p/9866053.html