mysql按时,天,月,年统计数据

时间戳方式 按照小时分组web Select count(*) as count,date_format(FROM_UNIXTIME(createtime),’%Y-%m-%d %H’) as createdate from xtable group by createdate 按照天分组sql Select count(*) as count,date_format(FROM_UNIXTIME(
相关文章
相关标签/搜索