您可以在下面查看并帮助我。我正在获取序列错误和ref cur值而不插入对象类型。
object (x,y,z)
type a is table of object
procedure a_procedure(a out a_ref cursor, b out b_ref cursor)is
x a := a();
begin
b_procedure(ref cursor)
if ref cursor%found then
loop
a.extend;
a(a.count) := object(null,null,null)
fetch ref cursor into a(a.count).x
a(a.count).y
a(a.count).y;
exit when b_refcur%notfound;
end loop;
end;
/
上下文:值不是从b_procedure的ref游标中获取的。我想从另一个过程获取ref游标值,并将该值提取到对象中。
答案 0 :(得分:0)
begin
b_procedure (ref_cursor);
if ref_cursor%is open then
fetch ref_cursor into r`enter code here`ecord;
collection_type.extend;
collection_type(collection_type.last):=object(record.value1),
(record.value2),
...etc);
end if;
end;
/