Re: Obtaining the primary key of the record just inserted - Mailing list pgsql-novice

From Hans-Peter Oeri
Subject Re: Obtaining the primary key of the record just inserted
Date
Msg-id 47336281.1040906@oeri.ch
Whole thread Raw
In response to Obtaining the primary key of the record just inserted  ("Oliveiros Cristina" <oliveiros.cristina@marktest.pt>)
List pgsql-novice
Hi!

Oliveiros Cristina wrote:
I have the need to know the primary key assigned to a record I've just INSERTed .
Is there an easy way to solve this ?
I prefer:
INSERT INTO [...] RETURNING id;

HPO

pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Re: Obtaining the primary key of the record just inserted
Next
From: "David Monarchi"
Date:
Subject: Constructing two-dimensional arrays from a query