Getting ResultSet using JDBC when calling Stored-Procedures

From: "Arthur & Kathy Yeo" <ayeo(at)acm(dot)org>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Getting ResultSet using JDBC when calling Stored-Procedures
Date: 2002-06-11 03:25:17
Message-ID: GBEALLNLBJAONCGNBCIDMEJNCAAA.ayeo@acm.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

In reading the docs for PL/pgSQL, I noticed that there is no mention about
PL/SQL-TABLES which in Oracle allows stored procedures to do a SELECT and
return all the rows thru one of its OUT arguments.

Some people suggested that we can get the stored procedure to return a
CURSOR and the caller can access that cursor thru JDBC. The only method I
saw related to cursor in JDBC is getCursorName().
Anyone know how to access a returned CURSOR coming back from a
stored-procedure at the JDBC interface?

Similar needs in doing a bulk INSERTs thru a stored procedure.

--
Arthur

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vernon Wu 2002-06-11 03:39:34 Date in JDBC
Previous Message Bruce Momjian 2002-06-10 16:15:48 Re: more incorrect values for DatabaseMetaData.getColumns()