Answers:
使用DATE()
功能:
select * from follow_queue group by DATE(follow_date)
select DATE(follow_date), count(*) from follow_queue group by 1
DATE(follow_date)
。你可以做到这一点ORDER BY
,以及- ORDER BY 1, 2
,例如
http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html
http://www.tutorialspoint.com/mysql/mysql-date-time-functions.htm
直接使用日期功能。希望能奏效
select * from follow_queue group by cast(follow_date as date)
首先。