| От | Alban Hertroys |
|---|---|
| Тема | Re: Return the primary key of a newly inserted row? |
| Дата | |
| Msg-id | 44A000F9.6090107@magproductions.nl обсуждение |
| Ответ на | Re: Return the primary key of a newly inserted row? (Scott Ribe <scott_ribe@killerbytes.com>) |
| Ответы |
Re: Return the primary key of a newly inserted row?
|
| Список | pgsql-general |
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 ;)
--
Alban Hertroys
alban@magproductions.nl
magproductions b.v.
T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede
// Integrate Your World //
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера