Get Rows from at least 3 days ago

Asked

Viewed 88 times

3

I have a table with column datetime and I need to get the results that already have 3 days of existence, all more than 3 days, I tried to use

SELECT *, DATE_FORMAT(date, '%m/%d/%Y') FROM tb WHERE DATE(date) = CURDATE() - INTERVAL 3 DAY ORDER BY ID DESC

But it did not give.

1 answer

4


Browser other questions tagged

You are not signed in. Login or sign up in order to post.