a few posts ago, I had asked about how to use a %rowtype record (based on a cursor) as a parameter for a procedure. the final example of how to do this was something like...
this solution worked fine until I tried to implement it within the context of a package. I get a compilation error message.
for example...
how do I pass the variable "rec" into a procedure within the context of a package?
Code:
cursor c is select * from t;
rec c%rowtype;
procedure pr(r c%rowtype) is
begin
null;
end;
this solution worked fine until I tried to implement it within the context of a package. I get a compilation error message.
for example...
Code:
package pk is
pr(r c%rowtype);
end;
package body pk is
cursor c is select * from t;
rec c%rowtype;
procedure pr(r c%rowtype) is
begin
null;
end;
end;
how do I pass the variable "rec" into a procedure within the context of a package?