Answers for "mysql months ago"

SQL
5

mysql where one year ago

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

mysql 3 months ago

date_created >= NOW() - INTERVAL 3 MONTH
Posted by: Guest on April-20-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language