select * from t_class_info where place_id = 10 and date_format(now(),'%Y-%m-%d-%H-%i-%S')>=begin_date and date_format(now(),'%Y-%m-%d-%H-%i-%S')<=date_add(end_date, interval '1 00:00:00' day_second)
参考:
select * from t_class_info where place_id = 10 and date_format(now(),'%Y-%m-%d-%H-%i-%S')>=begin_date and date_format(now(),'%Y-%m-%d-%H-%i-%S')<=date_add(end_date, interval '1 00:00:00' day_second)
参考:
本文标题:Mysql 获取某个时间之后一段时间的方法
本文链接:https://www.haomeiwen.com/subject/zoxwdxtx.html
网友评论