Re: INSERT INTO...RETURNING vs SELECT

Поиск
Список
Период
Сортировка
От Andreas Kretschmer
Тема Re: INSERT INTO...RETURNING vs SELECT
Дата
Msg-id 20100405071026.GA5610@tux
обсуждение исходный текст
Ответ на INSERT INTO...RETURNING vs SELECT  (Cliff Wells <cliff@develix.com>)
Ответы Re: INSERT INTO...RETURNING vs SELECT  (Cliff Wells <cliff@develix.com>)
Список pgsql-sql
Cliff Wells <cliff@develix.com> wrote:

> As far as I can see, INSERT INTO...RETURNING is semantically equivalent
> to SELECT...FROM with a side-effect, so it seems this construct should
> work.  Can someone shed some light?

Well, at the moment you can't reuse the RETURNING-values, you have to
wait for 9.1, writeable CTE.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


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

Предыдущее
От: Cliff Wells
Дата:
Сообщение: INSERT INTO...RETURNING vs SELECT
Следующее
От: Cliff Wells
Дата:
Сообщение: Re: INSERT INTO...RETURNING vs SELECT