Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E42029FBE03 for ; Wed, 11 Jul 2007 13:52:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 34847-02 for ; Wed, 11 Jul 2007 13:52:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 46F9E9FBE9D for ; Wed, 11 Jul 2007 13:52:51 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1I8fQn-0000tY-9U for pgsql-sql@postgresql.org; Wed, 11 Jul 2007 12:52:49 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 059284050; Wed, 11 Jul 2007 12:52:44 -0400 (EDT) Date: Wed, 11 Jul 2007 12:52:44 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: using EXECUTE on Selects Message-ID: <20070711165243.GV1241@phlogiston.dyndns.org> References: <25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25474.63.118.86.10.1184172081.squirrel@www.88thstreet.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/56 X-Sequence-Number: 28791 On Wed, Jul 11, 2007 at 12:41:21PM -0400, Radhika Sambamurti wrote: > I was hoping to write a function where I can build up my where clause > (dynamic sql) and use the EXECUTE command with it. But I just read that > the SELECT INTO has not been implemented for use with EXECUTE. > > Is there a way to select data using EXECUTE? You missed the opening sentence of the previous paragraph: The INTO clause specifies where the results of a SELECT command should be assigned. A -- Andrew Sullivan | ajs@crankycanuck.ca The whole tendency of modern prose is away from concreteness. --George Orwell