Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Indexes with LIKE statements

Re: Indexes with LIKE statements

From: Craig Kelley <ink_at_inconnu.isu.edu>
Date: 2000/03/23
Message-ID: <m1bt45idfw.fsf@inconnu.isu.edu>#1/1

Nikita <Nikita_at_yahoo.com> writes:

> Running Oracle 8.0.5 on Solaris 2.7
>
> Creating a b-tree index on a varchar2 column, with high cardinality data
>
> being searched with LIKE statements.
> Does this make sense, and would the use of this index need to be forced
> with hints?

The optimizer will use the index if your clause is

  like 'DATA%'

But it cannot use the index if your clause is

  like '%DATA'

-- 
The wheel is turning but the hamster is dead.
Craig Kelley  -- kellcrai_at_isu.edu
http://www.isu.edu/~kellcrai finger ink@inconnu.isu.edu for PGP block
Received on Thu Mar 23 2000 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US