select date_format(t.login_date,’%Y-%m-%d’) AS 日期,COUNT(DISTINCT t.user_id) as 人数
from user_login t
group by date_format(t.login_date,’%Y-%m-%d’) ORDER BY t.login_date ASC;
统计系统每天登录人数,去除重复登录
select date_format(t.login_date,’%Y-%m-%d’) AS 日期,COUNT(DISTINCT t.user_id) as 人数
from user_login t
group by date_format(t.login_date,’%Y-%m-%d’) ORDER BY t.login_date ASC;
统计系统每天登录人数,去除重复登录