Returning multiple rows from plpgsql function

From: Mintoo Lall <tlqmail(at)yahoo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Returning multiple rows from plpgsql function
Date: 2003-02-17 20:07:13
Message-ID: 20030217200713.84465.qmail@web14809.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Hi Everybody,

How can I return multiple rows from a plpqsql function. I wanted to write a function which gives me the result of the final select query from a bunch of nested select queries. What return type should use? The return type %ROWTYPE only returns a single row. In SQL function I can do this by stating that the function returns a setof record but it doesnt work in plpgsql function.

Thanks,

Tarun

---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-02-17 20:18:20 Re: Returning multiple rows from plpgsql function
Previous Message Miquel van Smoorenburg 2003-02-17 19:52:08 Re: convert from an integer to a date