Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 9E0D747594B for ; Sun, 24 Mar 2002 22:55:21 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g2P3tJK02154; Sun, 24 Mar 2002 22:55:19 -0500 (EST) From: Bruce Momjian Message-Id: <200203250355.g2P3tJK02154@candle.pha.pa.us> Subject: Re: About EXECUTE in pl/pgsql In-Reply-To: <003401c1d3af$17bf8710$1400a8c0@jac> To: jack Date: Sun, 24 Mar 2002 22:55:19 -0500 (EST) Cc: pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200203/301 X-Sequence-Number: 7180 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