1、Java(CallableStatement)调用Oracle存储过程返回结果集(ResultSet)一:无返回值的存储过程调用存储过程: CREATEORREPLACEPROCEDUREPRO_1(PARA1INVARCHAR2,PARA2INVARCHAR2) AS BEGIN INSERTINTODBO.EMP(ID,NAME)VALUES(PARA1,PARA2); ENDPRO_1; Java代码: packagecom.icesoft.service;importjava.sql.*;importjava.sql.ResultSet
5、ARA2OUTVARCHAR2) AS BEGIN SELECTINTOPARA2FROMEMPWHEREID=PARA1; ENDPRO_2; Java代码: packagecom.icesoft.service;importjava.sql.*;publicclassCallProcedureTest2{publicCallProcedureTest2(){ super();}publicstaticvoidmain(String[]args){ Stringdriver="oracle.jdbc.driver.OracleDriver"; S