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: TKPROF shows SELECT... LIKE '%ABC' uses INDEX RANGE SCAN - is that possible???

Re: TKPROF shows SELECT... LIKE '%ABC' uses INDEX RANGE SCAN - is that possible???

From: Tony Andrews <andrewst_at_onetel.com>
Date: 1 Oct 2004 04:23:25 -0700
Message-ID: <1096629805.920039.142340@k17g2000odb.googlegroups.com>


Jan wrote:
> How it is possible that Oracle was aible to response to the 2-nd
question
> SELECT * FROM t a1 WHERE name LIKE '%10'
>
> by using INDEX RANGE SCAN ?

Because it wasn't that exactly, it was
> SELECT * FROM t a1 WHERE name LIKE :x

Oracle has no idea what :x may contain at runtime, and has made some assumption that leads it to choose the index range scan. The index rang scan WILL work, it's just that it will have to start at the beginning and scan right through to the end. Received on Fri Oct 01 2004 - 06:23:25 CDT

Original text of this message

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