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

Home -> Community -> Usenet -> c.d.o.misc -> Re: select ... where col in (collection)

Re: select ... where col in (collection)

From: Richard Kuhler <noone_at_nowhere.com>
Date: Mon, 08 Sep 2003 20:08:58 GMT
Message-ID: <ul57b.41737$IJ6.1587587@twister.socal.rr.com>


roger wrote:
<snip>
> Well, the answer to my question seems to be to
> do something like this:
>
> where col in (select column_value from table(collection_variable) )

As silly as it might seem, you have to cast the variable to it's own type to make this work ...

... where user_id in
(select column_value from table(cast(cvar as numtab))))

Richard Kuhler Received on Mon Sep 08 2003 - 15:08:58 CDT

Original text of this message

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