Reputation: 669
Here's the my query:
SELECT *
FROM product
WHERE product_created > NOW() ORDER BY product_created DESC
How can I add days to product_created?
Here's what I want to happen product_created+5days > NOW()
Thanks in advance..
Upvotes: 0
Views: 1807
Reputation:
You can use DATEDIFF
:
SELECT * FROM product WHERE DATEDIFF(product_created,NOW() >= 5 ORDER BY product_created DESC
Upvotes: 2