pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
How can I return multiple rows from a FUNCTION? 2+ messages / 1 participants [nested] [flat]
* How can I return multiple rows from a FUNCTION? @ 1998-12-06 00:32 Ed Cox <ed@infojunkie.com> 0 siblings, 0 replies; 2+ messages in thread From: Ed Cox @ 1998-12-06 00:32 UTC (permalink / raw) To: pgsql-sql Is it possible to have a FUNCTION in Postgres that returns multiple rows? Something like: CREATE FUNCTION foo() RETURNS ??? AS 'SELECT count(*) FROM bar' LANGUAGE 'sql'; If not, can you suggest a way to encapsulate this functionality? I'd like to keep all SQL code out of my GSP code. Thanks very much, Ed Cox ^ permalink raw reply [nested|flat] 2+ messages in thread
* How can I return multiple rows from a FUNCTION? (revised) @ 1998-12-06 00:35 Ed Cox <ed@infojunkie.com> 0 siblings, 0 replies; 2+ messages in thread From: Ed Cox @ 1998-12-06 00:35 UTC (permalink / raw) To: pgsql-sql Is it possible to have a FUNCTION in Postgres that returns multiple rows? Something like: CREATE FUNCTION foo() RETURNS ??? AS 'SELECT * FROM bar' LANGUAGE 'sql'; If not, can you suggest a way to encapsulate this functionality? I'd like to keep all SQL code out of my GSP code. Thanks very much, Ed Cox ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-12-06 00:35 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 1998-12-06 00:32 How can I return multiple rows from a FUNCTION? Ed Cox <ed@infojunkie.com> 1998-12-06 00:35 How can I return multiple rows from a FUNCTION? (revised) Ed Cox <ed@infojunkie.com>
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