Last serial number inserted - Mailing list pgsql-sql

From Eduardo
Subject Last serial number inserted
Date
Msg-id 00101708182600.00842@YOSEMITE
Whole thread Raw
List 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


pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: JDBC Performance
Next
From: Josh Berkus
Date:
Subject: Re: Last serial number inserted