qugh
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
DateDiff Question
in MySQL Help
Posted
My question is about the 'datediff' function. I am trying to select all dates from today or after, but I'm getting an error with this statement at the DateDiff function. Here's my query as is.
SELECT *
FROM
data_events as d
WHERE
Deleted = 0
AND
DATEDIFF( d.sDate , Now() ) >= 0
ORDER BY
sDate
LIMIT 5