How I can read-back a serial value just inserted?

From: "dfx" <dfx(at)dfx(dot)it>
To: <pgsql-general(at)postgresql(dot)org>
Subject: How I can read-back a serial value just inserted?
Date: 2007-01-01 17:46:26
Message-ID: 000001c72dcc$c3595b60$f400a8c0@SEMPRON
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear Sirs,

my question is very simple:
when I insert a row whith a serial field, a value is automatically
generated; how can I know this value, strictly of my row, without the risk
of to read the value of another subsequent insertion?

Thank you.

Domenico

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2007-01-01 18:21:35 Re: Installing support for python on windows
Previous Message Adrian Klaver 2007-01-01 17:32:44 Re: Installing support for python on windows