0

I am trying to do this:

WHERE dateadded < TODAY - 2 days

What is the correct MySQL syntax for this?

Ethan Allen
  • 14,425
  • 24
  • 101
  • 194

1 Answers1

0

http://www.w3schools.com/sql/func_datediff_mysql.asp

WHERE DATEDIFF(CURDATE(), dateadded) > 2

Andrei Nicusan
  • 4,555
  • 1
  • 23
  • 36