From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | teknokrat <teknokrat(at)yahoo(dot)com> |
Cc: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: How do i return a dataset from a stored procedure |
Date: | 2002-07-05 16:10:11 |
Message-ID: | 20020705090743.X27508-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 5 Jul 2002, teknokrat wrote:
> I can't figure out how to return a group of rows from a function
> written in plpgsql (or plsql for that matter). The only way i have
> seen it done is with a setof table return value in sql. But since the
> query was a single select anyway i don't see the point of this. Is
> there a way of creating a temporary table in a procedure and using it
> as the output?
In 7.2 you can return open cursors from plpgsql functions. You can
make temp tables in a function, but you have to be careful to make sure
that you don't conflict (what happens if the user calls your function
twice)
From | Date | Subject | |
---|---|---|---|
Next Message | Roberto Mello | 2002-07-05 16:21:17 | Re: How do i return a dataset from a stored procedure |
Previous Message | Arjen van der Meijden|Moderator P&W / Serverbeheer | 2002-07-05 15:12:17 | Re: Boolean to int |