Oracleでユーザータイプを作成しました
create or replace type my_array_list
is
table of
varchar2(100);
今、私はこのような出力パラメータを持つプロシージャを書きました:
type my_list_rec IS record
(
best_friends my_array_list,
good_friends my_array_list
);
type my_list_array is table of my_list_rec;
procedure friends_diff_prc(my_name in varchar2,
my_friend_list_o out my_list_array ,
rc_o out number);
今、私は拡張している私のJAVAクラスを通してこのprocを呼んでいStoredProcedure
ます。
// Declare output parameter
declareParameter(new SqlOutParameter(
PropertiesReader
.getPropertyValue(FRIENDSConstants.GET_FRIEND_LIST_OUT),
OracleTypes.ARRAY,"MYDB.MY_ARRAY_LIST"));
しかし、私がprocを呼び出しているとき、私は
org.springframework.jdbc.BadSqlGrammarException:
OUTパラメータを正しく宣言していますか?そして、どのようにしてその出力パラメーターの内容を解析できますか?
前もって感謝します。