pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Uisng Procedures via JDBC
2+ messages / 2 participants
[nested] [flat]

* Uisng Procedures via JDBC
@ 2002-01-07 17:42 Michaell Oxtoby <michael.oxtoby@viewgate.com>
  2002-01-14 21:31 ` Re: Uisng Procedures via JDBC Josh Berkus <josh@agliodbs.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michaell Oxtoby @ 2002-01-07 17:42 UTC (permalink / raw)
  To: pgsql-sql

I have a query about accessing stored procedures in Postgres via JDBC.

Currently if we have a "cardata" procedure which retrieves a set of data on
cars

we access it in the following manner:

Statement s1 = connection.createStatement( );

String query = "select cardata( )";

ResultSet results = s1.executeQuery( query );

This is very different from the standard way of calling a stored procedure
in JDBC which

looks more like:

CallableStatement s1 = connection.prepareCall("{ call cardata }");

ResultSet results = s1.executeQuery( );

I would like to know if there is a better way of calling stored procedures
than the one we

are using or whether there is a method that looks more like the second piece
of code.






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Uisng Procedures via JDBC
  2002-01-07 17:42 Uisng Procedures via JDBC Michaell Oxtoby <michael.oxtoby@viewgate.com>
@ 2002-01-14 21:31 ` Josh Berkus <josh@agliodbs.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Josh Berkus @ 2002-01-14 21:31 UTC (permalink / raw)
  To: Michaell Oxtoby <michael.oxtoby@viewgate.com>; pgsql-sql

Michaell,

Send your question to the pgsql-jdbc list.  They can help you.  We can't.

-Josh Berkus

______AGLIO DATABASE SOLUTIONS___________________________
                                       Josh Berkus
  Complete information technology      josh@agliodbs.com
   and data management solutions       (415) 565-7293
  for law firms, small businesses        fax 621-2533
    and non-profit organizations.      San Francisco



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-01-14 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-07 17:42 Uisng Procedures via JDBC Michaell Oxtoby <michael.oxtoby@viewgate.com>
2002-01-14 21:31 ` Josh Berkus <josh@agliodbs.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox