Skip site navigation (1) Skip section navigation (2)

Functions returning multiple rowsets

From: Thom Brown <thombrown(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Functions returning multiple rowsets
Date: 2009-09-28 16:49:33
Message-ID: bddc86150909280949s6f9b88d0nbf380716afc3f5dd@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-general
Hi,

Is it possible to create a function using 'SQL' as language which could
return multiple rowsets, such as "SELECT * FROM TABLE1; SELECT * FROM
TABLE2;" where both results are returned in the output?  I know this can be
done in stored procedures in other RBDMS but can this be done in a function?

Thanks

Thom

Responses

pgsql-general by date

Next:From: Steve AtkinsDate: 2009-09-28 16:55:51
Subject: Re: sync structures
Previous:From: Merlin MoncureDate: 2009-09-28 16:42:13
Subject: Re: computed values in plpgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group