MySQL Forums
Forum List  »  Newbie

Re: Date SQL Query
Posted by: Peter Brawley
Date: February 18, 2015 12:02PM

Expressing the logic of your requirement more directly would've got you there ...

select id
from tbl
where date('2001-01-01') between date(from_date) and date(to_date);

Options: ReplyQuote


Subject
Written By
Posted
February 18, 2015 07:49AM
Re: Date SQL Query
February 18, 2015 12:02PM


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.