Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT * FROM table WHERE date = DATE(DATE_ADD(NOW(), INTERVAL 8 DAY))
如何将此查询修改为我可以获得exipry_date过去 12 天内过期的列表?
exipry_date
SELECT * FROM `table` WHERE `exipry_date` BETWEEN DATE_ADD(NOW(), INTERVAL -12 DAY) AND NOW();