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
3945
April 26, 2006 01:57PM
2131
April 26, 2006 04:46PM
2012
April 26, 2006 04:56PM
2225
April 26, 2006 05:29PM
1975
May 03, 2006 03:11PM
Re: Query Optimization
1988
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.