From: Dan Langille <dan@langille.org>
To: Itai Zukerman <zukerman@math-hat.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: SELECT INTO TEMP in Trigger?
Date: Fri, 11 Apr 2003 18:15:07 -0400
Message-ID: <3E97062B.27895.20A9935B@localhost> (raw)
In-Reply-To: <87brzcr8pf.fsf_-_@matt.w80.math-hat.com>
References: <87smsora9b.fsf@matt.w80.math-hat.com>
On 11 Apr 2003 at 18:05, Itai Zukerman wrote:
> This seems to not be possible is plpgsql:
>
> SELECT DISTINCT A.x INTO TEMP X FROM A,B WHERE A.x=B.x;
>
> Is there some way to create a temporary table in plpgsql?
Yes.
http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=sql-
selectinto.html
--
Dan Langille : http://www.langille.org/
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: pgsql-sql@postgresql.org
Cc: dan@langille.org, zukerman@math-hat.com
Subject: Re: SELECT INTO TEMP in Trigger?
In-Reply-To: <3E97062B.27895.20A9935B@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox