我有以下類型定義成包PLSQL未初始化的集合
type column_info is record (col_name varchar2(20), col_value varchar2(1000));
type c_info is varray(10) of column_info;
type table_info is record (table_name varchar2(20), col_info c_info);
的規格在聲明部分封裝體我在包裝體的主體我有
t_info table_info;
在過程內部的
t_info:=null;
t_info.table_name:='gl_temp_report1';
t_info.col_info(1).col_name:='table_idx';
t_info.col_info.extend;
t_info.col_info(2).col_name:='table_row';
t_info.col_info.extend;
t_info.col_info(3).col_name:='table_row_detail';
偶數包編譯成功,在運行時我得到異常ORA-06531:Re對未初始化的收集。
我如何初始化col_info集合? 我試圖初始化t_info.col_info(),但我得到了「沒有功能」像這樣。 TIA,Aurel
http://ora-06531.ora-code.com/並閱讀帖子底部,這可能會幫助你。 – 2013-03-10 04:16:39