plpgsql: eeturning resultset from func.?

From: otisg(at)ivillage(dot)com
To: pgsql-novice(at)postgresql(dot)org
Subject: plpgsql: eeturning resultset from func.?
Date: 2002-02-25 00:16:02
Message-ID: 20020225001602.1347.cpmta@c006.snv.cp.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

I need to write some functions/stored procedures in PLPGSQL.
All examples have a return clause that returns a single item (e.g.
RETURN INTEGER or RETURN VARCHAR, etc.).

However, I need to return a result set (e.g. SELECT user_id,
name FROM users).
What do I specify in the return part of the FUNCTION definition for that?
CREATE FUNCTION foo() RETURNS ????? AS ' .....
What do I put in place of ?????
I could not find any examples for such cases.

Thanks,
Otis

_________________________________________________________________
iVillage.com: Solutions for Your Life
Check out the most exciting women's community on the Web
http://www.ivillage.com

Browse pgsql-novice by date

  From Date Subject
Next Message denis 2002-02-25 13:37:49 create table with PLPGSQL
Previous Message Jim Lanford 2002-02-24 12:32:17 help installing psql 7.1.3 - rh6.2 - libreadline.so.4