MySQL查詢生日是今天的用戶

select * from customer where MONTH(birthday) = MONTH(NOW()) and DAY(birthday) = DAY(NOW()) 如題,MySQL使用函數查詢生日是今天的用戶sql -- 還有五天要過生日的用戶 select * from customer where DATEDIFF(birthday,now()) = 5
相關文章
相關標籤/搜索