MySQL Forums
Forum List  »  Newbie

Re: Comparing Dates?
Posted by: Roland Bouman
Date: August 21, 2005 05:06PM

You can compare date columns to date values using all the usual operators. So:


datecol > cast(now() as date)

would require the rows having a datecol value greater than (=after) today.

Options: ReplyQuote


Subject
Written By
Posted
August 21, 2005 04:52PM
Re: Comparing Dates?
August 21, 2005 05:06PM
August 21, 2005 05:07PM
August 21, 2005 05:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.