How I can read-back a serial value just inserted? - Mailing list 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



pgsql-general by date:

Previous
From: stevegy@126.com
Date:
Subject: Re:   The jdbc
Next
From: "Alexi Gen"
Date:
Subject: Newbie questions (pg_global, tablespace, pg_temp, ...)