On Apr 20, 3:23 am, Arne Vajh=F8j <a...@[EMAIL PROTECTED]
> wrote:
> Lew wrote:
> > BoBi wrote:
> >> ResultSet rs =3D pstmt.getGeneratedKeys();
>
> > If only you were using PostgreSQL, you could use their extension to
the
> > INSERT command:
> > [ RETURNING * | output_expression [ AS output_name ] [, ...] ]
>
> But since we of course try to write database independent code, then
> we will not use that even if our current database happen to
> be PostgreSQL ...
>
> The getGeneratedKeys method is database independent - it just require
> a JDBC 3.0 compliant driver.
>
> Arne
I totally agree. :c), BoBi


|