Обсуждение: Re: Efficient Insert statement for one record into multiple

Поиск
Список
Период
Сортировка

Re: Efficient Insert statement for one record into multiple

От
"Albe Laurenz"
Дата:
>> 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