Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我正在使用 Doctrine (php) 和 mysql。
我需要将我的Datetime字段转换为Date. 但是Doctrine日期操纵器功能很少见...
Datetime
Date
我尝试了一些操作,DATE_ADD但DATE_DIFF没有成功。
DATE_ADD
DATE_DIFF
目的是 GROUP BY Date 以显示每天的统计数据。
只需使用GROUP BY DATE(your_column).
GROUP BY DATE(your_column)