From: | Jie Liang <jie(at)stbernard(dot)com> |
---|---|
To: | 'Steve Brett' <SBrett(at)e-mis(dot)com>, David Hassell <davhas(at)bellsouth(dot)net>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Function question |
Date: | 2002-06-28 15:26:43 |
Message-ID: | 7C760DAA511DC74B99E7D22189F786F101BF2102@MAIL01.stbernard.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Before v7.2, you have no way to resolve this, however, from v7.2, you can
return a cursor with PL/pgSQL, so I think you may resolve this problem by
cursor. But I haven't tested it yet.
Jie Liang
-----Original Message-----
From: Steve Brett [mailto:SBrett(at)e-mis(dot)com]
Sent: Friday, June 28, 2002 6:38 AM
To: David Hassell; pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] Function question
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(at)bellsouth(dot)net]
Sent: 27 June 2002 21:34
To: pgsql-sql(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2002-06-28 15:30:45 | Re: graphical interface - admin |
Previous Message | Masaru Sugawara | 2002-06-28 14:10:27 | Re: Calculating with sql |