From: Eduardo <eduardo@complex.com.br>
To: pgsql-sql@postgresql.org
Subject: Last serial number inserted
Date: Tue, 17 Oct 2000 08:16:58 -0200
Message-ID: <00101708182600.00842@YOSEMITE> (raw)
How can I get the last id ( serial number ) inserted. My C code is :
res = PQexec(conn,"insert into table1 (field1) values ('value1')");
table1:
id SERIAL,
field1 VARCHAR(10)
Thanks
Eduardo K
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: eduardo@complex.com.br
Subject: Re: Last serial number inserted
In-Reply-To: <00101708182600.00842@YOSEMITE>
References: <00101708182600.00842@YOSEMITE>
* 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