X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D3E23D1B499 for ; Fri, 5 Dec 2003 13:02:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 49210-02 for ; Fri, 5 Dec 2003 09:02:28 -0400 (AST) Received: from serwer.skawsoft.com.pl (skawina.eu.org [80.48.213.66]) by svr1.postgresql.org (Postfix) with ESMTP id 3F88DD1B4A1 for ; Fri, 5 Dec 2003 09:01:34 -0400 (AST) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id E65FB2B3D0; Fri, 5 Dec 2003 14:01:22 +0100 (CET) Message-ID: <3FD081CB.2050901@klaster.net> Date: Fri, 05 Dec 2003 14:02:03 +0100 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5) Gecko/20031007 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Kumar Cc: psql Subject: Re: Problem with dynamic query References: <01c301c3bb2d$76596b80$7502a8c0@hdsc.com> In-Reply-To: <01c301c3bb2d$76596b80$7502a8c0@hdsc.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/49 X-Sequence-Number: 16215 Dnia 2003-12-05 13:43, Użytkownik Kumar napisał: > Why is it so. Cant I use 'INTO [variable_name]' inside a dynamic query. > Please shed some light. Well, you didn't read the manual, did you? 9.5.4. Executing dynamic queries "the only way to extract a result from a dynamically-created SELECT is to use the FOR-IN-EXECUTE form" Regards, Tomasz Myrta