摘要:
SELECT * FROM 表名 WHERE DATE_FORMAT( FROM_UNIXTIME( 时间戳字段名), '%Y-%m-%d' ) = DATE_FORMAT( NOW( ), '%Y-%m-%d' ) GROUP BY xxx 阅读全文
摘要:
SELECT DATE_FORMAT( FROM_UNIXTIME( 时间戳字段), '%Y-%m-%d' ) AS date, id, xxx, xxx, count( xxx) AS total FROM 表名 WHERE DATE_SUB( CURDATE( ), INTERVAL 6 DAY 阅读全文