Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: select ... where col in (collection)
roger wrote:
>> >>>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 >>
Given what I read your requirements to be, this is the best approach. In my experience, the only problem you may encounter is that these types of queries can be more difficult to tune if they get complex.
Richard Kuhler Received on Mon Sep 08 2003 - 16:46:29 CDT
![]() |
![]() |