Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: union all in proc*c
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.orgReceived on Mon Nov 19 2007 - 23:14:41 CST
![]() |
![]() |