Re: PreparedStatement getting OID from INSERT - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: PreparedStatement getting OID from INSERT
Date
Msg-id 00ed01c1c099$41941e80$8201a8c0@inspiron
Whole thread Raw
In response to PreparedStatement getting OID from INSERT  (Doug Fields <dfields-postgres@pexicom.com>)
List pgsql-jdbc
Doug,

Doug,

PreparedStatement is extended from Statement so you s/b able to just
call the same method on a prepared statement as you do on a statement.

Dave

-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Doug Fields
Sent: Thursday, February 28, 2002 3:37 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] PreparedStatement getting OID from INSERT


Hello All,

In the past, this has been written:

Peter Mount wrote:
 > Yes. The ResultSet.getStatusString() and
 > Statement.getResultStatusString() methods give you access to this  >
information.

However, I'm using a PreparedStatement. How can I get the OID from an
INSERT statement after executing executeUpdate()?

Many thanks,

Doug


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



pgsql-jdbc by date:

Previous
From: Doug Fields
Date:
Subject: PreparedStatement getting OID from INSERT
Next
From: Andres Davila
Date:
Subject: Problem connecting by JDBC with a SERVLET