Returning an AutoInc ID on Insert

From: Andrew(dot)Mason(at)spektra(dot)co(dot)uk
To: pgsql-general(at)postgresql(dot)org
Subject: Returning an AutoInc ID on Insert
Date: 2000-08-23 10:08:27
Message-ID: OF380E3701.FEDE054E-ON80256944.00376158@spektra.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am using JDBC to insert values into a table that has an autoincrement
(series) integer as it's id.
Is it possible to get the ID returned to me as part of the insert process?
If so how do I do it?

Thanks for any help Andrew

Browse pgsql-general by date

  From Date Subject
Next Message Jules Bean 2000-08-23 10:34:45 Are PRIMARY KEYs just UNIQUE INDEXes?
Previous Message Roodie 2000-08-23 09:58:21 some problems