refer a column as a varible name? - Mailing list pgsql-sql

From gherzig@fmed.uba.ar
Subject refer a column as a varible name?
Date
Msg-id 56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar
Whole thread Raw
Responses Re: refer a column as a varible name?
List 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.


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Please help, can't figure out what's wrong with this function...
Next
From: "Leif B. Kristensen"
Date:
Subject: Re: Need help with 'unique parents' constraint