Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> please help: problem in calling javastored procedure in Oracle8i
I am a new Oracle user, right now using Oracle8i and java as develop tools. I
have two questions:
(1)suppose in a java stored procedure, I have a ResultSet object holds a set
of records (ResultSet rs = mystatement.executeQuery("select * from emp"), how
can I pass this rs ResultSet object back to the stand alone calling program
written in java.
(2)when I call a java stored procedure, in the code below:
...............
CallableStatement stmt = conn.prepareCall("call stored_procedure(?, ?)");
stmt.setString(1, firstParam); stmt.registerOutParameter(2, secondParam); stmt.execute();
Can anybody give me help? Ff you can attach some simple samples would be great!
Thanks a lot!
Jiang Yin
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Sat Mar 20 1999 - 00:31:00 CST
![]() |
![]() |