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
相關文章
相關標籤/搜索