MySQL 通过时间戳查询每天数量 sql 语句
select FROM_UNIXTIME(addtime,'%Y-%m-%d')as date,COUNT(*)
FROM ad_mac
GROUP BY FROM_UNIXTIME(addtime,'%Y-%m-%d');
select FROM_UNIXTIME(addtime,'%Y-%m-%d')as date,COUNT(*)
FROM ad_mac
GROUP BY FROM_UNIXTIME(addtime,'%Y-%m-%d');