Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 643FF9FA326 for ; Fri, 26 Jan 2007 07:58:32 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 19448-10 for ; Fri, 26 Jan 2007 07:58:25 -0400 (AST) X-Greylist: delayed 01:06:12.993169 by SQLgrey-1.7.4 Received: from smtp3.ualg.pt (smtp3.ualg.pt [193.136.224.6]) by postgresql.org (Postfix) with ESMTP id 6951D9FA320 for ; Fri, 26 Jan 2007 07:58:29 -0400 (AST) Received: by smtp3.ualg.pt (Postfix, from userid 501) id 87D581E006F; Fri, 26 Jan 2007 11:58:27 +0000 (WET) Received: from localhost (smtp3.ualg.pt [127.0.0.1]) by smtp3.ualg.pt (Postfix) with ESMTP id 6C4101E005B for ; Fri, 26 Jan 2007 11:58:27 +0000 (WET) X-Virus-Scanned: amavisd-new at ualg.pt Received: from smtp3.ualg.pt ([127.0.0.1]) by localhost (smtp3.ualg.pt [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5EHDLjQRqm0X for ; Fri, 26 Jan 2007 11:58:26 +0000 (WET) Received: from [10.17.20.14] (unknown [10.17.20.14]) by smtp3.ualg.pt (Postfix) with ESMTP id B23781E004F for ; Fri, 26 Jan 2007 11:58:26 +0000 (WET) Message-ID: <45B9ECE0.5090007@ualg.pt> Date: Fri, 26 Jan 2007 11:58:24 +0000 From: =?ISO-8859-1?Q?Lu=EDs_Sousa?= User-Agent: Debian Thunderbird 1.0.2 (X11/20061113) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-sql Subject: Evaluate a variable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.071 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_PASS X-Spam-Level: * X-Archive-Number: 200701/137 X-Sequence-Number: 27289 Hi, Is there anyway to evaluate a variable in plpgsql, like eval on PHP? Suppose the example: my_var:=''some value!''; a:=''my_var''; b:= a; I already tried b:=EXECUTE a; without luck! Best regards, Luís Sousa