pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
return multiple rows
4+ messages / 4 participants
[nested] [flat]

* return multiple rows
@ 2003-05-23 16:58  Sidar Lopez Cruz <sidarlopez@hotmail.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Sidar Lopez Cruz @ 2003-05-23 16:58 UTC (permalink / raw)
  To: pgsql-admin

how to return multiple rows and columns from functions


:-) Sidar Lopez Cruz
- Cero Riesgo, S.A.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: return multiple rows
@ 2003-05-23 17:32  Stephan Szabo <sszabo@megazone23.bigpanda.com>
  parent: Sidar Lopez Cruz <sidarlopez@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Stephan Szabo @ 2003-05-23 17:32 UTC (permalink / raw)
  To: Sidar Lopez Cruz <sidarlopez@hotmail.com>; +Cc: pgsql-admin


On Fri, 23 May 2003, Sidar Lopez Cruz wrote:

> how to return multiple rows and columns from functions

Joe Conway gave a pretty good list of resources in the
following message a few days ago:

http://archives.postgresql.org/pgsql-sql/2003-05/msg00405.php




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: return multiple rows
@ 2003-05-23 17:34  Joe Conway <mail@joeconway.com>
  parent: Sidar Lopez Cruz <sidarlopez@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Joe Conway @ 2003-05-23 17:34 UTC (permalink / raw)
  To: Sidar Lopez Cruz <sidarlopez@hotmail.com>; +Cc: pgsql-admin

Sidar Lopez Cruz wrote:
> how to return multiple rows and columns from functions
> 

See:
http://techdocs.postgresql.org/guides/SetReturningFunctions
http://www.brasileiro.net:8080/postgres/cookbook/view-one-recipe.adp?recipe_id=11378
http://www.varlena.com/GeneralBits/26.html

There are plpgsql and sql function examples in the mailing list 
archives. Couple of examples:
   http://archives.postgresql.org/pgsql-general/2002-10/msg00022.php
and
   http://archives.postgresql.org/pgsql-general/2002-12/msg00426.php

And finally, in the manual see:
general ->
http://developer.postgresql.org/docs/postgres/xfunc-tablefunctions.html
sql ->
http://developer.postgresql.org/docs/postgres/xfunc-sql.html (sec 9.2.4)
C ->
http://developer.postgresql.org/docs/postgres/xfunc-c.html (sec 9.5.6)
plpgsql ->
http://developer.postgresql.org/docs/postgres/plpgsql-control-structures.html
usage ->
http://developer.postgresql.org/docs/postgres/sql-select.html 
(from_item, inputs, from clause, usage)

Joe





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: return multiple rows
@ 2003-05-23 18:12  Ian Barwick <barwick@gmx.net>
  parent: Sidar Lopez Cruz <sidarlopez@hotmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Ian Barwick @ 2003-05-23 18:12 UTC (permalink / raw)
  To: Sidar Lopez Cruz <sidarlopez@hotmail.com>; pgsql-admin

On Friday 23 May 2003 18:58, Sidar Lopez Cruz wrote:
> how to return multiple rows and columns from functions

This is top secret information you can find only on this
carefully hidden page:
http://www.postgresql.org/docs/faqs/FAQ.html

(question 4.25).

Please don't tell anyone else!

 ;-)

Ian Barwick
barwick@gmx.net





^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-05-23 18:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-23 16:58 return multiple rows Sidar Lopez Cruz <sidarlopez@hotmail.com>
2003-05-23 17:32 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2003-05-23 17:34 ` Joe Conway <mail@joeconway.com>
2003-05-23 18:12 ` Ian Barwick <barwick@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox