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: union all in proc*c

Re: union all in proc*c

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 19 Nov 2007 21:14:41 -0800
Message-ID: <1195535672.888607@bubbleator.drizzle.com>


boopathi.it_at_gmail.com wrote:
> I am trying to use the UNION ALL in a CURSOR declaration. It compiles
> fine and
> when we run the program it fetches only the rows corresponding to the
> first
> query in the cursor statement. We do not get any rows corresponding to
> the
> second query. But we know that second query can fetch some rows if
> executed in the ORACLE environment and we could not find any
> specific ways of using union all in the cursors declarations.
>
> Any help on this greatly appreciated.

No Oracle version number
No DDL
No DML

How would you like us to help you with the problem: Guess?

Try taking the two halfs of the statement and run them separately in SQL*Plus. What happens?

-- 
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Nov 19 2007 - 23:14:41 CST

Original text of this message

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