MySQL Forums
Forum List  »  General

Re: Seemingly erratic behavior
Posted by: Rick James
Date: April 29, 2015 07:05PM

FROM_UNIXTIME(p.start_date) > concat(CURDATE( ) , ' 23:59:59')
-->
p.start_date >= CURDATE() + INTERVAL 1 DAY

The former _cannot_ use an index on start_date; the latter might.

Options: ReplyQuote


Subject
Written By
Posted
Re: Seemingly erratic behavior
April 29, 2015 07:05PM


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.