X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0DF3BD941F for ; Thu, 29 Sep 2005 04:20:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03028-05 for ; Thu, 29 Sep 2005 07:20:42 +0000 (GMT) Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by svr1.postgresql.org (Postfix) with ESMTP id 47B5AD9B0F for ; Thu, 29 Sep 2005 04:20:42 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id B847417A00 for ; Thu, 29 Sep 2005 09:20:40 +0200 (CEST) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08932-08 for ; Thu, 29 Sep 2005 09:20:40 +0200 (CEST) Received: from mike.mobart.hr (mike.mobart.hr [192.168.10.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 94FC317438 for ; Thu, 29 Sep 2005 09:20:40 +0200 (CEST) Subject: Re: Sending function parametars within EXECUTE ''SELECT... From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: pgsql-sql@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: Mob-Art Date: Thu, 29 Sep 2005 09:20:45 +0200 Message-Id: <1127978445.27771.5.camel@ekim> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/292 X-Sequence-Number: 22839 On Thu, 2005-09-29 at 16:36 +1000, Stewart Ben (RBAU/EQS4) * wrote: > > Is there a way to assing variable a value returned from query that > > accesses the temporary table in a way you explained above? > > > > For instance, I can do: > > > > myValue := col2 FROM tmpTbl WHERE someValue = somethingElse... > > If I'm parsing this correctly, all you need do is: > > SELECT col2 INTO myValue FROM ....... > So, when accessing temporary tables, like this: EXECUTE ''SELECT col2 INTO myValue FROM tmpTable...'' Don't have postsgres handy now, I'll check that ASAP, but somehow I feel that I'd run into same problems as before. I'll try and I'll post a reply here. Mario -- Mario Splivalo Mob-Art mario.splivalo@mobart.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two."