Re: About EXECUTE in pl/pgsql - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: About EXECUTE in pl/pgsql
Date
Msg-id 200203250355.g2P3tJK02154@candle.pha.pa.us
Whole thread Raw
In response to About EXECUTE in pl/pgsql  ("jack" <datactrl@tpg.com.au>)
List pgsql-sql
jack wrote:
> Hi, 
> I do following in pl/pgsql. (st1 has been set to "LIKE 'abc%' ")
> 
>  EXECUTE
>   ''CREATE TEMP TABLE comuser AS '' ||
>   ''SELECT * FROM comt_user1 WHERE username ''||St1||
>   ''ORDER BY username;'';
> 
> I've got "ERROR: EXECUTE ..SELECT INTO hasn't impletmented", How can??

Can you try to CREATE the table and then do a INSERT ... SELECT. 
Perhaps that's the only way.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: About temporary table
Next
From: "jack"
Date:
Subject: Re: About temporary table