MySQL Forums
Forum List  »  Optimizer & Parser

Re: Query Optimization
Posted by: Björn Steinbrink
Date: May 03, 2006 03:31PM

MySQL does not use indexes for unequality comparisons. And regarding the dtEntered field, is that of type datetime? If so, maybe the string comparison function gives MySQL a hard time, you could try using:

dtEntered BETWEEN '2006-04-26 00:00:00' AND '2006-04-26 23:59:59'

Options: ReplyQuote


Subject
Views
Written By
Posted
3733
April 26, 2006 01:57PM
2009
April 26, 2006 04:46PM
1905
April 26, 2006 04:56PM
2095
April 26, 2006 05:29PM
1899
May 03, 2006 03:11PM
Re: Query Optimization
1891
May 03, 2006 03:31PM


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.