mysql 将时间戳直接转换成日期时间: FROM_UNIXTIME( ):转为时间戳类型时间 UNIX_TIMESTAMP( ) :返回长整形类型时间 from_unixtime()是MySQL里的时间函数 select count(id) AS number,from_unixtime(reg_date, '%y-%m-%d') AS time from `gc...