Re: Function question - Mailing list pgsql-sql

From Steve Brett
Subject Re: Function question
Date
Msg-id C05E7DA1218ED411BF8A00105AC95A8E0599DEF9@sv-cntrmail.emis.local
Whole thread Raw
In response to Function question  ("David Hassell" <davhas@bellsouth.net>)
List pgsql-sql
i think you declare 'return set of int' as the retunr type of the function, but i'm not sure if you can return a set of rows as a dataset from a function. i guess you could define a data type as a row and retunr a set of them but i'm only guessing as my knowledge /experience doesn't stretch that far i'm afraid ....
 
Steve
-----Original Message-----
From: David Hassell [mailto:davhas@bellsouth.net]
Sent: 27 June 2002 21:34
To: pgsql-sql@postgresql.org
Subject: [SQL] Function question

I am new to pgsql having worked with M$SQL for a while, my question would be if functions are the equivelent to Stored Procedures, how does one return a rowset, instead of a single typed variable?  If this is the wrong group, my apologies and please point me to the correct one.
 
Thanks,
David

pgsql-sql by date:

Previous
From: "David Hassell"
Date:
Subject: Function question
Next
From: Steve Brett
Date:
Subject: Re: Subtraction of Dates