MySQL 查询当天数据


select * from 表名 where to_days(时间字段名) = to_days(now());

to_days 函数,返回天数

发表评论

邮箱地址不会被公开。 必填项已用*标注