Re: SELECT INTO TEMP in Trigger? - Mailing list pgsql-sql

From Dan Langille
Subject Re: SELECT INTO TEMP in Trigger?
Date
Msg-id 3E97062B.27895.20A9935B@localhost
Whole thread Raw
In response to SELECT INTO TEMP in Trigger?  (Itai Zukerman <zukerman@math-hat.com>)
List pgsql-sql
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/



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: count(*), EXISTS, indexes
Next
From: Itai Zukerman
Date:
Subject: Re: SELECT INTO TEMP in Trigger?