How to return a resultset/table from a sql function? - Mailing list pgsql-general

From Joost Kraaijeveld
Subject How to return a resultset/table from a sql function?
Date
Msg-id A3D1526C98B7C1409A687E0943EAC41048A0AD@obelix.askesis.nl
Whole thread Raw
List pgsql-general
Hi,

Is it possible to return the following (parameterized) qyery from a sql or plpsql function, and if so, what is the
syntax?

SELECT{     (SELECT COUNT(klantnummer)         FROM abo_klt WHERE abonnement = $1),
        (SELECT SUM(aantal_abonnementen)     FROM abo_klt WHERE abonnement = $1));




Groeten,

Joost

pgsql-general by date:

Previous
From: "Ed L."
Date:
Subject: Re: Postgresql didn't start after power failure
Next
From: MargaretGillon@chromalloy.com
Date:
Subject: Postgresql Text field / Visual FoxPro Memo and ODBC