mysql current timestamp minus 1 day code example
Example: mysql where one year ago
select *
from orders
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
select *
from orders
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);