From: Roberto Mello <rmello@cc.usu.edu>
To: pgsql-sql@postgresql.org
Subject: PL/PgSQL FOR syntax
Date: Fri, 16 Feb 2001 11:31:25 -0700
Message-ID: <20010216113125.A14323@cc.usu.edu> (raw)
Hi,
What's the correct syntax to access rows in a FOR loop? I'm writing
a PL/PgSQL doc and seem to be making a mistake somewhere.
I am referring to this:
[<<label>>]
FOR record | row IN select_clause LOOP
statements
END LOOP;
How do I access the rows within the for loop? row.field?
Thanks,
-Roberto
--
Computer Science Utah State University
Space Dynamics Laboratory Web Developer
USU Free Software & GNU/Linux Club http://fslc.usu.edu
My home page - http://www.brasileiro.net/roberto
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu
Subject: Re: PL/PgSQL FOR syntax
In-Reply-To: <20010216113125.A14323@cc.usu.edu>
References: <20010216113125.A14323@cc.usu.edu>
* 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