mysql records from the last year with timestamp 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);