0
我正在使用Oracle Forms Builder 10g。在我的应用程序中,我有一个嵌套的表类型,它包含一堆varchar2。它是type my_type_1 is table of varchar2(255)
。我在我的数据库中创建了相同的类型。如何在基于Oracle Forms存储过程的块中通过ORACLE中的NESTED TABLE进行循环?
现在,我正在创建一个基于存储过程的表单。我想传递的my_type_1
变量在身体就是这样:
procedure my_proc (my_var_in_out IN OUT some_type, my_var_test IN my_type_1) is
cursor my_cursor(id varchar2(255)) is
select name from emp where emp_id = id;
idx number := 1;
begin
for I in my_cursor(my_var_test) loop <<< this is where I'm stuck. Can I pass it like that ?
my_var_in_out (idx) := I;
idx := idx +1;
end loop;
end;
用于R(从表中选择COLUMN_VALUE (铸造(my_var_test如my_type_1)))环DBMS_OUTPUT.PUT_LINE(r.column_value); end loop; –
你可以像上面一样使用 –