select DATE_FORMAT(created,'%Y%m%d') 日期,count(*) 消息数量 ,count(distinct mac) 独立用户数 from event where event_id='download_app' group by 日期;