pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Roberto Mello <rmello@cc.usu.edu>
To: David Durst <ddurst@larubber.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Getting multiple rows in plpgsql function
Date: Fri, 24 Jan 2003 15:36:27 -0700
Message-ID: <20030124223626.GB24536@cc.usu.edu> (raw)
In-Reply-To: <42509.216.86.192.34.1043437147.squirrel@www.la-rubber.com>
References: <42509.216.86.192.34.1043437147.squirrel@www.la-rubber.com>

On Fri, Jan 24, 2003 at 11:39:07AM -0800, David Durst wrote:
> I am wondering how you would handle a select that returns multiple rows
> in a plpgsql function?
> 
> In other words lets say I wanted to iterate through the results in
> the function.

There are examples in the PL/pgSQL documentation that show you how to do it.

-Roberto

-- 
+----|        Roberto Mello   -    http://www.brasileiro.net/  |------+
+       Computer Science Graduate Student, Utah State University      +
+       USU Free Software & GNU/Linux Club - http://fslc.usu.edu/     +
And God said: E = ½mv² - Ze²/r, and there was light.



view thread (3+ messages)  latest in thread

Message-ID: <20030124223626.GB24536@cc.usu.edu>
Permalink:  ../20030124223626.GB24536@cc.usu.edu/
Also on:    postgresql.org/message-id/20030124223626.GB24536@cc.usu.edu

 · 

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: rmello@cc.usu.edu, ddurst@larubber.com
  Subject: Re: Getting multiple rows in plpgsql function
  In-Reply-To: <20030124223626.GB24536@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