我寫了一個oracle的帶輸入輸出引數的存盤程序,他的輸出引數是一個自定義的table型別,用hibernate去請求這個存盤程序,不知道怎么寫這個輸出引數的型別,一般的String型別是用java.sql.Types.VARCHAR接收就行,但是這個型別不知道怎么接;
存盤程序大致如下:
create or replace procedure p_test(mbid in varchar ,tab_list out pkg_mbsc.tab_check_list) is
row_re pkg_mbsc.rec_mbsc_check;
begin
end p_test;
其中輸出引數tab_list是包里面pkg_mbsc定義的tab_check_list;
row_re 是包里面pkg_mbsc定義的rec_mbsc_check;
型別如下:
type rec_mbsc_check is record(MBMC varchar(200),GCMC varchar(200));
type tab_check_list is table of rec_mbsc_check index by binary integer;
問題是:如何在Java中呼叫時定義tab_check_list的型別,這個應該是個list集合,但是從java.sql.Types.沒有找到。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/194400.html
標籤:Java相關
上一篇:如何在32位電腦上安裝springboot相關環境?
下一篇:Spring Boot配置
