msyql分组查询,按照日期格式
摘要:
SELECT DATE_FORMAT( deteline, "%Y-%m-%d %H" ) , COUNT( * ) FROM test GROUP BY DATE_FORMAT( deteline, "%Y-%m-%d %H" ) 查询某天: deteline, "%Y-%m-%d 某时: det 阅读全文
posted @ 2017-11-18 11:30 Eggsblue 阅读(219) 评论(0) 推荐(0) 编辑