By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,504 Members | 1,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,504 IT Pros & Developers. It's quick & easy.

Merge two cursors data (select from a cursor?)

P: n/a
HI,
I need to "add" data to a cursor. Since it is not updatable, I would
like to select from data union all select from my cursor: (test is a
package)

(the following fucntion is part of test package body)

function retcur(Parrec in test%rowtype, Parcur in testpack.MyCUr)
return testpack.MyCur is
TestCur testpack.MyCUr;

begin
open TestCur for select * from Parcur
union all select rec.id, rec.fname from dual;
Return TestCur;
end;

My problem is that I cannot select from Parcur cursor. Is there a way
to achive this? I don't want to create a temp table since there can be
some locking/access problems.

Thank you for your help
Christian
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
cc*******@yahoo.com (Christian) wrote in message news:<99**************************@posting.google. com>...
HI,
I need to "add" data to a cursor. Since it is not updatable, I would
like to select from data union all select from my cursor: (test is a
package)

(the following fucntion is part of test package body)

function retcur(Parrec in test%rowtype, Parcur in testpack.MyCUr)
return testpack.MyCur is
TestCur testpack.MyCUr;

begin
open TestCur for select * from Parcur
union all select rec.id, rec.fname from dual;
Return TestCur;
end;

My problem is that I cannot select from Parcur cursor. Is there a way
to achive this? I don't want to create a temp table since there can be
some locking/access problems.

Thank you for your help
Christian


Hi Christian,

Did you try Global Tempoary Table there is no locking issue with this
excellent feature in oracle 8i and onward and please check if package
cursor help you.
Thanks and Regards
Khurram Naseem
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.