dbTalk Databases Forums  

how to get the cursor to return 2 sets of values

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


Discuss how to get the cursor to return 2 sets of values in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default how to get the cursor to return 2 sets of values - 08-05-2006 , 04:21 PM






Hello All,
I have a cursor as follows.

cursor StvsbgiC(p_inst varchar2 default null) is
select *
from stvsbgi
where stvsbgi_code = p_inst or p_inst is null
order by stvsbgi_desc;

In my first procedure, my value of p_inst is null and hence the result
set of the cursor is computed accordingly. At the end of the 1st
procedure, p_inst gets a value.
Now in my 2nd procedure, how can I get the cursor to return me the
result set based on that value ?
If I try to access the cursor in my 2nd procedure, I am still getting
the results of the 1st computing of the cursor(when p_inst was null).
Any input would be appreciated.

thanks
- Ardy


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 - 2010, Jelsoft Enterprises Ltd.