Re: What is the postgres sql command for last_user_id ???

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: What is the postgres sql command for last_user_id ???
Дата
Msg-id 20050302081257.GB47871@winnie.fuhr.org
обсуждение исходный текст
Ответ на What is the postgres sql command for last_user_id ???  (amrit@health2.moph.go.th)
Список pgsql-performance
On Tue, Mar 01, 2005 at 10:46:02PM +0700, amrit@health2.moph.go.th wrote:

> I would like to know whether there is any command which the server will give the
> record ID back to the client when client puts the data and the server generates
> an autoincrement ID for that record.

See "How do I get the value of a SERIAL insert?" and the question
immediately following it in the FAQ:

http://www.postgresql.org/files/documentation/faqs/FAQ.html#4.11.2

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: "Ken Egervari"
Дата:
Сообщение: Help with tuning this query
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Help with tuning this query