import java.sql.CallableStatement;
试试看,CallableStatement类是用来处理存储过程的

解决方案 »

  1.   

    call.registerOutParameter (2, oracle.jdbc.driver.OracleTypes.CURSOR);
      

  2.   

    呵呵,用CallableStatement是肯定的了!
    用registerOutParameter()设定传出参数类型也是必需的
    获取一个或多个结果集时用getUpdateCount()和getMoreResults()来办
    具体怎么用,搂主还是查查api吧
    当然,调用程序总得配合存储过程,就是说知道存储过程里面干些啥。