Re: Subselect query for a multi table insert single query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Subselect query for a multi table insert single query
Дата
Msg-id 14841.1032754734@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Subselect query for a multi table insert single query  ("Norman Khine" <norman@khine.net>)
Список pgsql-novice
"Norman Khine" <norman@khine.net> writes:
>  What should be the correct syntax for embedding this.

This would work fine:

INSERT INTO table VALUES (foo, bar, baz, currval('seq'), ...);

The elements of an INSERT/VALUES list are expressions, not
necessarily literal constants.

            regards, tom lane

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

Предыдущее
От: "Norman Khine"
Дата:
Сообщение: Re: Subselect query for a multi table insert single query
Следующее
От: "Norman Khine"
Дата:
Сообщение: Re: Subselect query for a multi table insert single query