set transaction question

From: HYip <hualinyip(at)earthlink(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: set transaction question
Date: 2001-05-15 17:54:00
Message-ID: 3B015F03.B8BEE9ED@earthlink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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,

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-15 18:22:18 Re: Re: Re: What's the best front end/client under MS Windows?
Previous Message Gregory Wood 2001-05-15 17:51:23 Re: Re: What's the best front end/client under MS Windows?