Mysql获取两小时以内的数据

select * from wx_push_msg where schedule_datetime between  date_format(now(),'%Y-%m-%d %H:00:00') and DATE_ADD(date_format(now(),'%Y-%m-%d %H:00:00'),interval 2 hour)

おすすめ

転載: blog.csdn.net/weixin_42842069/article/details/109185364
おすすめ