View Single Post

   
  #6 (permalink)  
Old 04-11-2008, 06:53 AM
Martijn van Oosterhout
 
Posts: n/a
Default Re: Returning multiple result sets

On Sun, Nov 20, 2005 at 08:43:05AM +0100, Pavel Stehule wrote:
> >Consider:
> >
> >create function a(anyrecord) returns anyrecord;
> >create function b(int4) returns anyrecord;
> >
> >select a(b(2));
> >

>
> for my task I need little different form :-(
>
> create function a(..) returns setof tables
>
> but SQL2003 needs type table, and this can be solution


You want a function return entire tables at a time? Why bother when you
can just return rows and signal when the next table starts?

Have a nice day,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFDgIOUIB7bNG8LQkwRAgrOAJ9ihFNgbriWgM4ouNB0FX nbyZTRCgCfbc2R
gt1mV9KqCyZKZKs2DtAojCU=
=ZC3N
-----END PGP SIGNATURE-----

Reply With Quote