Skip site navigation (1) Skip section navigation (2)

Retrieve auto-generated key.

From: "Sangeeta" <Sangeeta(dot)shah(at)bluenog(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Retrieve auto-generated key.
Date: 2008-11-04 15:46:05
Message-ID: 004401c93e94$733f9b00$59bed100$ (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc


Ability to retrieve auto-generated key is one of the key features of JDBC3. 
I tried using prepareStatement(String sql, int autoGeneratedKeys) ,
prepareStatement(String sql, int[] columnIndexes) and
prepareStatement(String sql, String[] columnNames) but with no success . It
returned with exception message as "Returning autogenerated keys is not


I know there is already one thread for retrieve auto-generated key but look
like that thread does not have one distinct   solution.

Is there any patch or workaround to retrieve auto-generated key ?






pgsql-jdbc by date

Next:From: Albe LaurenzDate: 2008-11-04 16:01:56
Subject: Re: JNDI Datasource in tomcat
Previous:From: Ingmar LötzschDate: 2008-11-04 13:19:19
Subject: Re: JNDI Datasource in tomcat

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group