refer a column as a varible name?

From: gherzig(at)fmed(dot)uba(dot)ar
To: pgsql-sql(at)postgresql(dot)org
Subject: refer a column as a varible name?
Date: 2005-09-12 15:21:22
Message-ID: 56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Wei 2005-09-12 18:01:08 How do I convert an integet to a timestamp?
Previous Message Tom Lane 2005-09-12 14:18:42 Re: Please help, can't figure out what's wrong with this function...