mysql查询当天的数据

mysql查询当天的数据

贴代码:

#两个时间都使用to_days()函数
select * from reple where to_days(create_time) = to_days(NOW())

 

posted @ 2018-08-24 19:54  测试5454  阅读(238)  评论(0编辑  收藏  举报