passing a cursor to a stored procedure from Java
From: Michael Waelde <mwaelde_at_intershop.de>
Date: Thu, 22 Jul 1999 18:54:19 +0200
Message-ID: <7n7ibr$hu4_at_linux1.netconx.de>
Hello all,
how can I pass a cursor as an in/out-parameter to a procedure from Java? I tried the following but it didn't work. When I call the procedure from commandline it works fine.
...
Date: Thu, 22 Jul 1999 18:54:19 +0200
Message-ID: <7n7ibr$hu4_at_linux1.netconx.de>
Hello all,
how can I pass a cursor as an in/out-parameter to a procedure from Java? I tried the following but it didn't work. When I call the procedure from commandline it works fine.
...
ResultSet refcur = null;
CallableStatement statement = conn.prepareCall("{ ? = call sp_CustomerVerify
(?,?)}");
statement.registerOutParameter(1, OracleTypes.CURSOR); statement.setObject(2, refcur); statement.setString(3, custno); statement.execute();
...
Michael Received on Thu Jul 22 1999 - 18:54:19 CEST
