From: mail TechEvolution <mail@techevolution.be>
To: pgsql-sql@postgresql.org
Subject: getting back autonumber just inserted
Date: Thu, 07 Jul 2005 19:50:16 +0200
Message-ID: <42CD6B58.6060508@techevolution.be> (raw)
hello
i ame a newbie to PostGreSQL, I ame using PostGreSQL 8.0
(windowsinstaller) on a xp prof platform
i would like to get back the autonumber from the last record inserted,
for other SQL db (m$ sql db ...) i could use:
SELECT @@ IDENTITY
can someone help me by informing me what the SQL syntax is to be used
with PostGreSQL db and get the same result, the last autonumber inserted?
greeTz
wes
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: mail@techevolution.be
Subject: Re: getting back autonumber just inserted
In-Reply-To: <42CD6B58.6060508@techevolution.be>
* 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