mysql查询当天的数据

mysql中经常会用到查询当天的数据,格式如下

select *
from user_table
where to_days(creationTime) = to_days(now())

猜你喜欢

转载自blog.csdn.net/u011900448/article/details/79425768