From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lonnie Cumberland <lonnie_cumberland@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Calling plSQL functions
Date: Fri, 13 Apr 2001 15:02:53 -0400
Message-ID: <5332.987188573@sss.pgh.pa.us> (raw)
In-Reply-To: <20010413185714.7788.qmail@web12502.mail.yahoo.com>
References: <20010413185714.7788.qmail@web12502.mail.yahoo.com>
Lonnie Cumberland <lonnie_cumberland@yahoo.com> writes:
> Actually I have the need at different places in my functions to
> sometimes work on the list items returned from a query and also have
> the need to just work on the first result returned by a query.
SELECT ... LIMIT 1 will serve the second need. For the first, perhaps
use the FOR ... loop construct in plpgsql.
regards, tom lane
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: tgl@sss.pgh.pa.us, lonnie_cumberland@yahoo.com
Subject: Re: Calling plSQL functions
In-Reply-To: <5332.987188573@sss.pgh.pa.us>
References: <20010413185714.7788.qmail@web12502.mail.yahoo.com> <5332.987188573@sss.pgh.pa.us>
* 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