Re: returning the primary key value

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: returning the primary key value
Дата
Msg-id 20050922032827.GA90411@winnie.fuhr.org
обсуждение исходный текст
Ответ на returning the primary key value  ("Jason Tesser" <JTesser@nbbc.edu>)
Ответы Re: returning the primary key value  (vishal saberwal <vishalsaberwal@gmail.com>)
Список pgsql-general
On Wed, Sep 21, 2005 at 02:22:22PM -0500, Jason Tesser wrote:
> I have a stored proc in which I want to retur the primary key of
> an insert statement that the stored proc just ran.  How can  I do
> that?

If the primary key is a SERIAL column then see "How do I get the
value of a SERIAL insert?" in the FAQ:

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

--
Michael Fuhr

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

Предыдущее
От: Ismael Perdido
Дата:
Сообщение: Re: JDBC error w/ WebObjects
Следующее
От: "Alex R. Mosteo"
Дата:
Сообщение: Re: Problem with libpq3 & postgresql8