以user表为例查询日注册量并按日分组,signupTime为日期,格式为“2019-09-05 00:38:17”:

查询语句:
select DATE_FORMAT(signupTime,'%Y-%m-%d') days,count(uid) count from user group by days;

select DATE_FORMAT(signupTime,'%Y-%m-%d') days,count(uid) count from user group by days;
相关热词搜索: