Serial numbers

Поиск
Список
Период
Сортировка
От Marcus Better
Тема Serial numbers
Дата
Msg-id 14000.10525.469359.464174@unreal.matematik.su.se
обсуждение исходный текст
Список pgsql-sql
Herouth Maoz writes:

 > So, the inserts for the ccats table become:
 >
 > INSERT INTO ccats (cid, catid) VALUES (currval( 'name of seq' ), 5 );

What if someone does another INSERT between the two INSERTs, then the
number generator is stepped and the second table gets the wrong serial
number. Should one use LOCK here?

Marcus

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

Предыдущее
От: Remigiusz Sokolowski
Дата:
Сообщение: Re: [SQL] Is any quick help to SQL functions?
Следующее
От: Vadim Mikheev
Дата:
Сообщение: Re: [SQL] Serial numbers