Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql where one year ago

select * 
from orders 
where order_date >= DATE_SUB(NOW(),INTERVAL 1 YEAR);
 
PREVIOUS NEXT
Tagged: #mysql #year
ADD COMMENT
Topic
Name
4+6 =