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
3972
April 26, 2006 01:57PM
2148
April 26, 2006 04:46PM
2031
April 26, 2006 04:56PM
2251
April 26, 2006 05:29PM
1999
May 03, 2006 03:11PM
Re: Query Optimization
2008
May 03, 2006 03:31PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

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.