DATE_FORMAT( datetime列, ‘%Y-%m-%d’ ) AS 日期,
SUM( … ) AS 合计,
COUNT( … ) AS 行数
FROM
表
GROUP BY
DATE_FORMAT( datetime列, ‘%Y-%m-%d’ )
时间:2020-03-04 00:12:51
DATE_FORMAT( datetime列, ‘%Y-%m-%d’ ) AS 日期,
SUM( … ) AS 合计,
COUNT( … ) AS 行数
FROM
表
GROUP BY
DATE_FORMAT( datetime列, ‘%Y-%m-%d’ )
mysql查询学生数据 怎样查询一个时间范围内 – 数据库 – 前端 mysql高效分页
2019-01-22