Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?
Дата
Msg-id 20100920101032.GA25954@depesz.com
обсуждение исходный текст
Ответ на Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?  (Bret Green <bret.green@yahoo.com>)
Ответы Re: how to insert multiple rows and get the ids back in a temp table (pgplsql)?  ("abhishek.itbhu2004" <abhishek.itbhu2004@gmail.com>)
Список pgsql-general
On Sun, Sep 19, 2010 at 05:34:54PM -0700, Bret Green wrote:
> Thanks
> Any solution without cursors perhaps?

write sql function as a wrapper around insert, and use it as a source
for 2nd insert.

depesz

--
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@depesz.com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: space taken by NULL values in array
Следующее
От: Dmitriy Igrishin
Дата:
Сообщение: Data directory permissions.