public inbox for [email protected]
help / color / mirror / Atom feedFrom: Roger Mason <[email protected]>
To: pgsql-novice <[email protected]>
Subject: Re: plpgsql select into
Date: Sat, 21 Aug 2021 08:24:21 -0230
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAKFQuwZPhqn1zF-zcOFXBrch2fqqAfFr5LVAhhiSR_xqXyMcCQ@mail.gmail.com>
References: <[email protected]>
<[email protected]>
<[email protected]>
<CAKFQuwZPhqn1zF-zcOFXBrch2fqqAfFr5LVAhhiSR_xqXyMcCQ@mail.gmail.com>
David G. Johnston writes:
> I suggest you should pretend that SQL's "SELECT INTO" doesn't exist. If
> you want to create a table from a result write: "CREATE TABLE AS" and then
> a normal select query. In particular the entire "action" command is kept
> whole instead of needing to put a bunch of column names in between the
> "SELECT" and the "INTO" - and you also are less likely to confuse the
> plpgsql feature of the same form.
Thank you David. I will try to heed that advice.
Roger
view thread (8+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: plpgsql select into
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox