MySQL—查询某时间范围的数据

-- 查询今天的数据 html select * from `user` where to_days(birthday) = to_days(CURDATE()); dom -- 查询昨天的数据 post select * from `user` where to_days(CURDATE()) - to_days(birthday)<=1; orm -- 查询最近7天的数据 htm select
相关文章
相关标签/搜索