[Libpqxx-general] Primary key
Trigve Siver
trigves at yahoo.com
Fri Nov 6 20:21:01 UTC 2009
>From: Jean-Michel Personne <jmc9497 at gmail.com>
>To: libpqxx-general at pgfoundry.org
>Sent: Fri, November 6, 2009 9:11:42 PM
>Subject: [Libpqxx-general] Primary key
>
>>Hello,
>
>I'm new with pqxx and I've a little question. After a INSERT statement, how can I get the primary key for the new line ?
Using RETURNING in INSERT statement, see http://www.postgresql.org/docs/8.4/static/sql-insert.html.
>Thanks.
Trigve
More information about the Libpqxx-general
mailing list