Re: About EXECUTE in pl/pgsql

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: jack <datactrl(at)tpg(dot)com(dot)au>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: About EXECUTE in pl/pgsql
Date: 2002-03-25 03:55:19
Message-ID: 200203250355.g2P3tJK02154@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message jack 2002-03-25 04:11:16 Re: About temporary table
Previous Message Bruce Momjian 2002-03-25 03:54:14 Re: About temporary table