Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: interest of indexes ....
Fred - Except for covered queries (this means a query where all the
required data can be found in indexes without any access to the actual
data heap), indexes will not help a query like the one you list: it's
like handing somebody a phone book and saying "find everyone whose
last name has an 'e' in it." Since your query is not covered, an
index will not help.
HTH,
Chris
Fred Burlaud <fburlaud_at_com6.fr> wrote in message news:<3D0DE076.20404_at_com6.fr>...
> Hello,
>
>
> An index works for search of the complete string of the field but
> is it appropiated for the substring search too
>
> For ex. I would like to know if an index on phone field is appropriated
> in this case
>
> SELECT * From Contact WHERE phone like '%0867%';
>
> Thanks
> Fred
Received on Mon Jun 17 2002 - 17:43:31 CDT