1.根据时间戳聚合数据
SELECT count(*),DATE_FORMAT(FROM_UNIXTIME(timestamp),'%Y-%m-%d') as date from table
timestamp