Re: Return the primary key of a newly inserted row?

Поиск
Список
Период
Сортировка
От John Tregea
Тема Re: Return the primary key of a newly inserted row?
Дата
Msg-id 44A07FDD.8090701@debraneys.com
обсуждение исходный текст
Ответ на Re: Return the primary key of a newly inserted row?  (Alban Hertroys <alban@magproductions.nl>)
Список pgsql-general
Hi all,

Thanks for the continued suggestions on this question. I will reply
again once it is implemented and working.

Kind regards

John

Alban Hertroys wrote:
> Scott Ribe wrote:
>>> You won't have duplicates[1], it's a sequence. It's its purpose.
>>>
>>> Now I may have missed something, I didn't follow this thread.
>>
>>
>> Yes, what you quoted was more the intro. The actual question was how
>> to find
>> out what ids were generated during a sequence of insertions.
>
> That's where you use currval ;)
>

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

Предыдущее
От: Mischa Sandberg
Дата:
Сообщение: Re: list or regular expressions
Следующее
От: "Alex Turner"
Дата:
Сообщение: Re: RAID + PostgreSQL?