Re: Subselect query for a multi table insert single query - Mailing list pgsql-novice

From Tom Lane
Subject Re: Subselect query for a multi table insert single query
Date
Msg-id 14841.1032754734@sss.pgh.pa.us
Whole thread Raw
In response to Re: Subselect query for a multi table insert single query  ("Norman Khine" <norman@khine.net>)
List 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 by date:

Previous
From: "Norman Khine"
Date:
Subject: Re: Subselect query for a multi table insert single query
Next
From: "Norman Khine"
Date:
Subject: Re: Subselect query for a multi table insert single query