ZYXS

生命不息,代码不止!

2018年10月28日

sql将日期按照年月分组并统计数量

摘要: 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, 阅读全文

posted @ 2018-10-28 16:55 ZYXS 阅读(18779) 评论(2) 推荐(1) 编辑