Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> LIKE operator
I have a very important question about LIKE operator in SQL with Oracle :
the documentation say that
"
Pattern Matching on Indexed Columns When LIKE is used to search an indexed
column for a pattern, Oracle can use the index to improve the statement's
performance if the leading character in the pattern is not "%" or "_". In
this case, Oracle can scan the index by this leading character. If the first
character in the pattern is "%" or "_", the index cannot improve the query's
performance because Oracle cannot scan the index.
"
But my request is like that :
SELECT ... FROM ... WHERE ... x like Y
,where x is a contant, and Y an indexed column of a table in the FROM part.
Will Oracle use its index to improve performances ?