pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Steinbeck <steinbeck@ice.mpg.de>
To: pgsql-interfaces@postgreSQL.org
Subject: JDBC and getting just assigned serial number
Date: Mon, 13 Sep 1999 21:19:18 +0200
Message-ID: <37DD4E36.830C04BD@ice.mpg.de> (raw)
References: <XFMail.990913114903.orsingerc@epg-gw1.lewis.army.mil>

Hi, 

I'm thrilled to see that there is some kind of discussion running in the
C area on the exact equivalent of my very recent JDBC problem. 
I insert a row into a table where one field is a SERIAL. This SERIAL, of
course, is automatically assigned by PostgreSQL. How do I get this
number immeadiately after inserting the row? When I issue the command
with psql I get back some kind of number which presumably is the OID.
Getting just this one would be fine too because I need it for
referencing. 

Any hints are greatly appreciated. 

TIA and cheers, 

Chris
--
Dr. Christoph Steinbeck (http://www.ice.mpg.de/~stein)
MPI of Chemical Ecology, Tatzendpromenade 1a, 07745 Jena, Germany
Tel: +49(0)3641 643644 - Mobile: +49(0)177 8236510 - Fax: +49(0)3641
643665

What is man but that lofty spirit - that sense of enterprise. 
... Kirk, "I, Mudd," stardate 4513.3..



view thread (7+ messages)  latest in thread

Message-ID: <37DD4E36.830C04BD@ice.mpg.de>
Permalink:  ../37DD4E36.830C04BD@ice.mpg.de/
Also on:    postgresql.org/message-id/37DD4E36.830C04BD@ice.mpg.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: steinbeck@ice.mpg.de, pgsql-interfaces@postgreSQL.org
  Subject: Re: JDBC and getting just assigned serial number
  In-Reply-To: <37DD4E36.830C04BD@ice.mpg.de>
  References: <XFMail.990913114903.orsingerc@epg-gw1.lewis.army.mil> <37DD4E36.830C04BD@ice.mpg.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox