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
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
Comment