mysql 通过时间戳查询每天的数据量

select FROM_UNIXTIME(reg_time,'%Y-%m-%d')as date,COUNT(*) 
FROM wd_member 
where phone != '' and reg_time != ''
GROUP BY FROM_UNIXTIME(reg_time,'%Y-%m-%d');

猜你喜欢

转载自blog.csdn.net/helloworld_dream/article/details/80666354