mysql 1 day ago
snippet in sql

mysql 1 day ago

user6628

select * 
from orders 
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);

mysql interval 1 day

user5028

SELECT * FROM FOO
WHERE MY_DATE_FIELD >= NOW() - INTERVAL 1 DAY