【发布时间】:2026-02-12 01:15:01
【问题描述】:
我正在开发 Oracle Forms Builder 10g。在我的应用程序中,我有一个包含一堆 varchar2 的嵌套表类型。这是type my_type_1 is table of varchar2(255)。我在我的数据库中创建了相同的类型。
现在,我正在创建一个基于存储过程的表单。我想在body中传递一个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;
【问题讨论】:
-
for r in (select Column_Value from table(cast(my_var_test as my_type_1))) loop dbms_output.put_line(r.column_value);结束循环;
-
你可以像上面那样使用
标签: oracle plsql oracleforms