Answers for "mysql date now - 1 day"

SQL
5

mysql 1 day ago

select * 
from orders 
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
Posted by: Guest on April-28-2020
0

mysql interval 1 day

SELECT * FROM FOO
WHERE MY_DATE_FIELD >= NOW() - INTERVAL 1 DAY
Posted by: Guest on July-03-2020
0

mysql date - 1 day

...WHERE DATE_FIELD >= DATE_SUB(NOW(), INTERVAL 1 DAY)
Posted by: Guest on May-29-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language