pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gherzig@fmed.uba.ar
To: pgsql-sql@postgresql.org
Subject: refer a column as a varible name?
Date: Mon, 12 Sep 2005 12:21:22 -0300 (ART)
Message-ID: <56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar> (raw)

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.



view thread (3+ messages)  latest in thread

Message-ID: <56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar>
Permalink:  ../56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar/
Also on:    postgresql.org/message-id/56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gherzig@fmed.uba.ar
  Subject: Re: refer a column as a varible name?
  In-Reply-To: <56093.157.92.152.53.1126538482.squirrel@webmail.fmed.uba.ar>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox