How to call Oracle procedure have Userdefined "Type" IN parameters using jdbc in java -


i have created below user defined type in oracle. using type in procedure in parameter. how call procedure using jdbc callablestatement.

create or replace type "varchar_tab"
table of varchar2(500);

my procedure is:

procedure delete_album_metadata ( p_catalog_tab in varchar_tab );

please me.

you need use setplsqlindextable binder method defined in oracle.jdbc.oraclepreparedstatement.

here pointer javadoc:

https://docs.oracle.com/database/121/jajdb/oracle/jdbc/oraclepreparedstatement.html#setplsqlindextable_int__java_lang_object__int__int__int__int_


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -