From: Bruno Ricardo Sacco <bsacco@hypernet.com.py>
To: pgsql-sql@postgresql.org
Subject: Pl/pgSQL Question.
Date: Thu, 25 Apr 2002 00:44:59 -0400
Message-ID: <200204250441.AAA23640@io.hypernet.com.py> (raw)
Im traing to make a pl/pgsql function that display records of a given table.
I pass the name of the table has an argument for the function.
Using the,
FOR myRec IN SELECT xxxxxxxxxxx LOOP
do some of the work, but I still need to know the names of the fields.
for example: myRec.name
there is a way to do same thing like :
myRec[0]
to reference fields in the record ?
I can retriebe the names of the table fields from then system tables, but
that din't help me.
Anyome knows how ?
Sorry for me english.....
-------------------------------------------------------------------------------------------------------------------------------
Bruno Ricardo Sacco
IT Manager
HyperNET ISP
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: bsacco@hypernet.com.py
Subject: Re: Pl/pgSQL Question.
In-Reply-To: <200204250441.AAA23640@io.hypernet.com.py>
* 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