1
SELECT * FROM table WHERE date = DATE(DATE_ADD(NOW(), INTERVAL 8 DAY))

如何将此查询修改为我可以获得exipry_date过去 12 天内过期的列表?

4

1 回答 1

0
 SELECT * FROM `table` WHERE `exipry_date` BETWEEN DATE_ADD(NOW(), INTERVAL -12 DAY) AND NOW();
于 2013-10-11T22:50:22.463 回答