SELECT *,count(*) FROM lt_cleanroute_point_arrive WHERE TIME_TO_ARRIVE BETWEEN '12:00:01' AND '23:59:59' and DATE_FORMAT(data_dt,'%Y-%m') = '2023-01' GROUP BY DATE(data_dt)
使用Date_format(字段,'%Y-%m-%d') 这样是不行的
本文来自博客园,作者:狂躁的键盘,转载请注明原文链接:https://www.cnblogs.com/wangweiip/p/17040570.html