MySql按周,按月,按日分组统计数据
时间:2021-07-01 10:21:17
帮助过:21人阅读
select DATE_FORMAT(date,‘%Y%m%d‘) days,count(id) count from table group by days;
select DATE_FORMAT(date,‘%Y%m‘) months,count(id) count from table group by months;
MySql按周,按月,按日分组统计数据
标签:bsp 数据 统计 select keyword ring alt class _for