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: IN clause with more than 999 elements

Re: IN clause with more than 999 elements

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Wed, 17 Sep 2003 08:06:13 -0700
Message-ID: <1063811158.983193@yasure>


Pete Finnigan wrote:

>Hi Federica
>
>Put the >999 elements into a table and change to a sub select
>
>select * from table where field in (select field from listtable);
>
>hth
>
>Kind regards
>
>Pete
>
>

And if the elements are dynamic, you didn't say, use a global temporary table and learn how they work so you use the correct type for what you are doing..

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Wed Sep 17 2003 - 10:06:13 CDT

Original text of this message

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