try this
CallableStatement callableStatement = conn.prepareCall("{? =
pl_function }");
callableStatement.registerOutParameter(1, OracleTypes.CURSOR);
callableStatement.execute();
ResultSet resultSet = (ResultSet)callableStatement.getObject(1);
while(resultSet.next())
{ System.out.println(resultSet.getString(1));
}
"LITT Vincent (Neuilly Gestion)" wrote:
>
> Hi everybody,
> Could anyone tell me how to call a PL/SQL Stored Procedure that returns
> a reference to a cursor using JDBC ... and how to use this cursor
> afterwards.
>
> Thanks in advance,
>
> Vincent
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets