sequence

Поиск
Список
Период
Сортировка
От Vladimir V. Zolotych
Тема sequence
Дата
Msg-id 38FC094F.EBF59629@eurocom.od.ua
обсуждение исходный текст
Ответы Re: sequence  (Andrew Perrin - Demography <aperrin@demog.berkeley.edu>)
Список pgsql-admin
Hello all

What is the safe way to add record to a table
and get it id (generated by a sequence) consistently?

E.g.
1) add record (INSERT INTO...) to a table
(the record's id will be generated
automatically due the ``id SERIAL'' column were defined).

2) get the id of a just created record.

Thanks
 

-- 
Vladimir Zolotych                         gsmith@eurocom.od.ua
 

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

Предыдущее
От: "Rainer Mager"
Дата:
Сообщение: RE: Maintenance
Следующее
От: Raul Carvalho
Дата:
Сообщение: RE: Maintenance