Re: Function example returning more then 1 value

From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Function example returning more then 1 value
Date: 2003-02-27 14:05:59
Message-ID: 200302271405.59919.darko.prenosil@finteh.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 27 February 2003 12:25, Roberto de Amorim wrote:
> I looked at
> http://developer.postgresql.org/docs/postgres/plpgsql-examples.html
> but there is not an example of function returning more then 1 value...
>
> could anyone sand me an example of function returning more then 1 value
> using PLPGSQL ? please
>
You can't return more than one return value from function, but that
value can be of composite type.For example :"setof text" or "setof record" are
such types.

See:
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html
http://developer.postgresql.org/docs/postgres/xfunc.html

Regards !

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Gibbs 2003-02-27 14:13:16 Re: PGSQL function question
Previous Message Matthew Nuzum 2003-02-27 13:58:14 selective copy