Re: CONCAT and Index in where clause
Hi,
Indexes do not apply for expressions involving functions over columns. In your specific case, you should be able to use an index if you rewrite the query as follows:
SELECT * from MyTABLE WHERE YEAR='2012' and MONTH='08' and DAY='21';
Hope this helps,
Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway
Subject
Views
Written By
Posted
16745
August 22, 2012 08:45AM
Re: CONCAT and Index in where clause
5673
August 23, 2012 01:15AM
4384
August 23, 2012 09:13PM
4457
August 27, 2012 09:53AM
4513
August 28, 2012 02:50AM
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.