由买买提看人间百态

topics

全部话题 - 话题: desc2
(共0页)
p******g
发帖数: 1
1
来自主题: Database版 - JDBC 求教
How to call stored procedure with two user-defined parameter whose name is
NUMBER_VARRAY. NUMBER_VARRAY is a VARRAY(1000)of NUMBER.The second parameter
is IN OUT.
Should I use sql.types.ARRAY?
some of code as below:
int[] p1arrorj={3,4};
ArrayDescriptor desc2=ArrayDescriptor.createDescriptor("NUMBER_VARRAY",conn);
ARRAY p1arr = new ARRAY(desc2,conn,p1arrobj);
ARRAY p2arr;
OracleCallableStatement ocs =(OracleCallableStatement)conn.prepareCall("{call
procedureName(?,?)}");
ocs.registerOutParameter
(共0页)