dbTalk Databases Forums  

union all in proc*c

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss union all in proc*c in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
boopathi.it@gmail.com
 
Posts: n/a

Default union all in proc*c - 11-19-2007 , 10:57 PM






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.

Reply With Quote
  #2  
Old   
DA Morgan
 
Posts: n/a

Default Re: union all in proc*c - 11-19-2007 , 11:14 PM






boopathi.it (AT) gmail (DOT) com wrote:
Quote:
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@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org


Reply With Quote
  #3  
Old   
grybi
 
Posts: n/a

Default Re: union all in proc*c - 12-12-2007 , 01:01 PM



check maybe you have ; after first query

Uzytkownik <boopathi.it (AT) gmail (DOT) com> napisal w wiadomosci
news:e1250c6e-f7b9-4775-9a74-9dd8507e6922 (AT) e1g2000hsh (DOT) googlegroups.com...
Quote:
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.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.