Last active
December 17, 2015 12:29
-
-
Save phnessu4/5610294 to your computer and use it in GitHub Desktop.
mysql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#select data group by day 按天统计数据 | |
select count(id),DATE_FORMAT(time,'%Y-%m-%d') from user where TO_DAYS(NOW()) - TO_DAYS(time)<=100 group by DATE_FORMAT(time,'%Y-%m-%d') order by time desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment