set transaction question

Поиск
Список
Период
Сортировка
От HYip
Тема set transaction question
Дата
Msg-id 3B015F03.B8BEE9ED@earthlink.net
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: manuel@des01.sanyres.es
Дата:
Сообщение: Form a field from two fields in a select
Следующее
От: bscinc2000@yahoo.comNOSPAM (Al Frick)
Дата:
Сообщение: Which OS to Use for Postgresql