【mysql】datetime时间比较时间:2023-03-09 01:56:13 如下,比较的日期用指定格式写出就可以了。不需要日期函数。 SELECT * FROM table_a WHERE write_date > "2017-07-17 00:00:00";