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: Very long "WHERE" list.

Re: Very long "WHERE" list.

From: Misha Polatov <mpolatov_at_meta-comm.com>
Date: Fri, 09 Jul 2004 21:31:51 -0500
Message-ID: <u4qogh9t4.fsf@meta-comm.com>


gumenyuk_at_canada.com (Serguei) writes:

> Dear Experts,
> I have to execute a SELECT statement with a very long "IN" list with
> several thousands of values:
>
> SELECT something FROM table WHERE id IN (1,3,5, ...., 20001)
>
> Unfortunately Oracle can not process this request directly. Is there
> any way to by path this limitation?
> Regards,
> Serguei.

SELECT something FROM table WHERE id IN

    (select value from __table_with_values__)

-- 
Misha Polatov
MetaCommunications Engineering
Received on Fri Jul 09 2004 - 21:31:51 CDT

Original text of this message

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