Re: SQL-question: returning the id of an insert querry - Mailing list pgsql-general

From Paul Thomas
Subject Re: SQL-question: returning the id of an insert querry
Date
Msg-id 20031110213452.A22322@bacon
Whole thread Raw
In response to Re: SQL-question: returning the id of an insert querry  (Kathy Zhu <Kathy.Zhu@Sun.COM>)
List pgsql-general
On 10/11/2003 17:22 Kathy Zhu wrote:
> I saw this method of Statement class in jdbc.
> Will the return int contain the autogenerated key value ??
>
> public int executeUpdate(String sql,
>                          int autoGeneratedKeys)
>                   throws SQLException
>
> thanks,
> kathy

This is one of a number of JDBC3 extensions which are just stub methods
ATM. You'll find it will just throw an exception if called.


--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants         |
http://www.thomas-micro-systems-ltd.co.uk   |
+------------------------------+---------------------------------------------+

pgsql-general by date:

Previous
From: Dave Smith
Date:
Subject: ERROR: out of free buffers: time to abort!
Next
From: Bruno Wolff III
Date:
Subject: Re: SQL-question: returning the id of an insert querry