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: UNION operators

Re: UNION operators

From: Jared Still <jkstill_at_gmail.com>
Date: Tue, 22 Mar 2005 15:42:00 -0800
Message-ID: <bf463805032215427a45dc19@mail.gmail.com>


Here's some perl to generate a 20001 way union.

The SQL is still parsing on my test box.

perl -e "print qq{select 1 from dual\nunion\n} x 20000 . q{select 1 from dual;}" >| utest.sql

It worked easily up to about 3000 way union.

Jared

On Tue, 22 Mar 2005 09:35:52 +0100, Denys van Kempen <dvkempen_at_gmail.com> wrote:
> Does anybody know if there is a limit to the number of UNION operators
> allowed in a SELECT?
>
> Could not find any mention of an upper limit in the documentation or
> issues with queries using a large number of operator in Metalink.
>
> Thanks,
>
> Denys
> --
> http://www.freelists.org/webpage/oracle-l
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Mar 22 2005 - 18:45:39 CST

Original text of this message

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