The value returned by autoinc ?

Поиск
Список
Период
Сортировка
От Silvio Emanuel Barbosa de Macedo
Тема The value returned by autoinc ?
Дата
Msg-id Pine.GSO.3.96.990315005145.20927C-100000@newton.inescn.pt
обсуждение исходный текст
Ответы Re: [GENERAL] The value returned by autoinc ?
Список pgsql-general
Hi!
When I insert data into a table with a sequence associated to a column
(and the required trigger), how can I know the value the sequence has
just generated ? (think in parallel accesses)

Would this approach be the answer ?
begin work
    insert...
    select max...
commit


,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
`````````````````````````````````````````````
Silvio Emanuel Nunes Barbosa de Macedo
mailto:smacedo@inescn.pt

INESC - Porto - Grupo CAV
Pc da Republica, 93 R/C   Tel:351 2 209 42 21
4000 PORTO  PORTUGAL      Fax:351 2 208 41 72








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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Foreign Keys: check_primary_function
Следующее
От: "James Puckett"
Дата:
Сообщение: postgres and PERL