MySQL Forums
Forum List  »  PHP

Re: Date ranges problem...
Posted by: Rick James
Date: October 14, 2009 06:43PM

Maybe this?
SELECT * FROM legs
    WHERE legstart <= CURRENT_DATE()
      AND legend   >= CURRENT_DATE()

http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_curdate

Options: ReplyQuote


Subject
Written By
Posted
October 12, 2009 11:56AM
Re: Date ranges problem...
October 14, 2009 06:43PM


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.