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 -> Oracle 9.0.1.6 fails to use index with '=' but will with 'like'

Oracle 9.0.1.6 fails to use index with '=' but will with 'like'

From: <steven.herod_at_gmail.com>
Date: 17 May 2005 04:47:22 -0700
Message-ID: <1116330442.641269.62380@f14g2000cwb.googlegroups.com>


How is this

select * from coneventnp where chcontainer like 'OLSU8888888'

Uses the index on the chcontainer column, but

select * from coneventnp where chcontainer = 'OLSU8888888'

will result in a full table scan.

Anybody ever seen anything like this? We consider this to be beyond bizzare. Received on Tue May 17 2005 - 06:47:22 CDT

Original text of this message

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