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 4A5ABD8B28 for ; Mon, 12 Sep 2005 12:17:54 -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 59138-10 for ; Mon, 12 Sep 2005 15:17:50 +0000 (GMT) Received: from fmed.uba.ar (mail.fmed.uba.ar [157.92.152.1]) by svr1.postgresql.org (Postfix) with ESMTP id E587FD8A03 for ; Mon, 12 Sep 2005 12:17:48 -0300 (ADT) Received: from webmail.fmed.uba.ar (localhost [127.0.0.1]) by fmed.uba.ar (Postfix) with SMTP id A9C4C2A92F for ; Mon, 12 Sep 2005 12:21:22 -0300 (ART) Received: from 157.92.152.53 (proxying for unknown) (SquirrelMail authenticated user gherzig) by webmail.fmed.uba.ar with HTTP; Mon, 12 Sep 2005 12:21:22 -0300 (ART) Message-ID: <56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar> Date: Mon, 12 Sep 2005 12:21:22 -0300 (ART) Subject: refer a column as a varible name? From: gherzig@fmed.uba.ar To: pgsql-sql@postgresql.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.178 required=5 tests=[NO_REAL_NAME=0.178] X-Spam-Level: X-Archive-Number: 200509/131 X-Sequence-Number: 22678 Hi all. I have troubles trying to achieve this assignment: suppose the type mycolumn as (field1, varchar, field2 varchar) and field_name = ''field1'' and returnValue declared as mycolumn ... can i say returnValue.$field_name = ''ok''? There is a way to achieve this piece of code? Thanks a lot! -- Gerardo Herzig Direccion General de Organizacion y Sistemas Facultad de Medicina U.B.A.