From: | "Dave Cramer" <Dave(at)micro-automation(dot)net> |
---|---|
To: | "'Doug Fields'" <dfields-postgres(at)pexicom(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: PreparedStatement getting OID from INSERT |
Date: | 2002-02-28 20:48:20 |
Message-ID: | 00ed01c1c099$41941e80$8201a8c0@inspiron |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org] On Behalf Of Doug Fields
Sent: Thursday, February 28, 2002 3:37 PM
To: pgsql-jdbc(at)postgresql(dot)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(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Amandeep Jawa | 2002-02-28 21:19:23 | Here is a Servlet for Testing Servlet-JDBC Connections & JDBC Drivers |
Previous Message | Doug Fields | 2002-02-28 20:37:12 | PreparedStatement getting OID from INSERT |