how to add 1 year in date mysql code example
Example 1: mysql where one year ago
select *
from orders
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
Example 2: mysql add days to date
UPDATE classes
SET `date` = DATE_ADD(`date` , INTERVAL 2 DAY)
WHERE `id` = 161;