如果是系统获取的时间戳,记得除以1000
SELECT FROM_UNIXTIME(d.CREATE_TIME/1000,'%Y-%m-%d')as date,SUM(d.xxx) from d_xxxxx d
where 1 =1
GROUP BY FROM_UNIXTIME(d.CREATE_TIME/1000,'%Y-%m-%d')
网上有很多方法都是直接获取的时间戳,需要注意
如果是系统获取的时间戳,记得除以1000
SELECT FROM_UNIXTIME(d.CREATE_TIME/1000,'%Y-%m-%d')as date,SUM(d.xxx) from d_xxxxx d
where 1 =1
GROUP BY FROM_UNIXTIME(d.CREATE_TIME/1000,'%Y-%m-%d')
网上有很多方法都是直接获取的时间戳,需要注意