淘先锋技术网

首页 1 2 3 4 5 6 7
mysql 10万条查询,怎样查询一个时间范围内?

SELECT

DATE_FORMAT( datetime列, '%Y-%m-%d' ) AS 日期,

SUM( ... ) AS 合计,

COUNT( ... ) AS 行数

FROM

GROUP BY

DATE_FORMAT( datetime列, '%Y-%m-%d' )