Re: Efficient Insert statement for one record into multiple

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Efficient Insert statement for one record into multiple
Дата
Msg-id 52EF20B2E3209443BC37736D00C3C1380BF080CF@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Список pgsql-jdbc
>> This is _bad_.
> No, this works

Oops, indeed.

>> What if somebody did a nextval("primary_A") between the insert into A
>> and the insert into B?
> as long as you use currval then it works as advertised

Sorry, I didn't realize that currval returns the last value retrieved
_in this session_.

YOurs,
Laurenz Albe

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Efficient Insert statement for one record into multiple
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Efficient Insert statement for one record into multiple