输入banner图图片脚本导航/分类

MySql按周,按月,按日分组统计数据

  • 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