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();