包里定義如下型別
type t_tb_rate2 is table of number(20,8) index by varchar2(50);
存過中:
定義v_tb_rate t_tb_rate2;
通過游標給v_tb_rate賦值
要將這個表型別作為引數傳給f_get_act_rate函式回傳一個數值
f_get_act_rate(c_res_kind,c_res_prod,c_inwd_mrk,'','','013003',v_tb_rate))
現在編譯包報錯“錯誤:PLS-00382: 運算式型別錯誤”
應該怎么改呀?請各位大神幫幫忙,在線等!
uj5u.com熱心網友回復:
在包中宣告 type t_tb_rate2 is table of number(20,8) index by varchar2(50);uj5u.com熱心網友回復:
type t_tb_rate2 is table of number(20,8) index by varchar2(50);這個從包中拿出來,定義成全域的
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/22958.html
標籤:開發
