From: Bruce Momjian <pgman@candle.pha.pa.us>
To: jack <datactrl@tpg.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: About EXECUTE in pl/pgsql
Date: Sun, 24 Mar 2002 22:55:19 -0500 (EST)
Message-ID: <200203250355.g2P3tJK02154@candle.pha.pa.us> (raw)
In-Reply-To: <003401c1d3af$17bf8710$1400a8c0@jac>
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, Pennsylvania 19026
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: pgman@candle.pha.pa.us, datactrl@tpg.com.au
Subject: Re: About EXECUTE in pl/pgsql
In-Reply-To: <200203250355.g2P3tJK02154@candle.pha.pa.us>
* 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