set transaction question - Mailing list pgsql-general

From HYip
Subject set transaction question
Date
Msg-id 3B015F03.B8BEE9ED@earthlink.net
Whole thread Raw
List pgsql-general
Inside a transaction,

I insert a row into the table, with an autonumber id.
Now I want to return the id of the newly inserted row.  How can I do
that?

It seems that the first insert statement is not committed, and so the
second statement couldn't return the newly id.

I looked at the set transaction, but it doesn't seem to provide a way to
set transaction write committed.

Thanks,


pgsql-general by date:

Previous
From: manuel@des01.sanyres.es
Date:
Subject: Form a field from two fields in a select
Next
From: bscinc2000@yahoo.comNOSPAM (Al Frick)
Date:
Subject: Which OS to Use for Postgresql