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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: problems accessing an index when using a variable inlist

Re: problems accessing an index when using a variable inlist

From: jaromir nemec <jaromir_at_db-nemec.com>
Date: Thu, 29 Nov 2007 19:27:51 +0100
Message-ID: <026601c832b5$8d808a60$3e02a8c0@ADLA>


Hi Ryan,

one possible reason is that the cardinality of the IN-LIST table is wrongly estimated.
You may verify it using the cardinality hint in the "select * from table", setting the cardinality to the length of your IN-LIST.

Regards,

Jaromir
----- Original Message -----
From: <ryan_gaffuri_at_comcast.net>
To: <oracle-l_at_freelists.org>
Sent: Thursday, November 29, 2007 5:27 PM Subject: problems accessing an index when using a variable inlist

>I am using the standard variable inlist code from asktom. I find that when
>I use it, I cannot access an index.

> WHERE a.col1 IN (select * from table( select cast(
> k_utility.func_varchar_in_list(col1) as
> t_varchar_tab ) from dual a))
>
>
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Nov 29 2007 - 12:27:51 CST

Original text of this message

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