Skip site navigation (1) Skip section navigation (2)

Last serial number inserted

From: Eduardo <eduardo(at)complex(dot)com(dot)br>
To: pgsql-sql(at)postgresql(dot)org
Subject: Last serial number inserted
Date: 2000-10-17 10:16:58
Message-ID: 00101708182600.00842@YOSEMITE (view raw or flat)
Thread:
Lists: pgsql-sql
 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

Responses

pgsql-sql by date

Next:From: Josh BerkusDate: 2000-10-17 15:47:18
Subject: Re: Last serial number inserted
Previous:From: Indraneel MajumdarDate: 2000-10-17 05:19:43
Subject: Re: Antw: many-many mapping between unique tables

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group