1.根据表中时间 指定区间分组统计条数 样例: select DATE_FORMAT(时间字段,'%Y-%m-%d') time,count(*) count from 表名 group by time