Passing multiple rows to a function?

From: Vitaly Belman <vitalyb(at)gmail(dot)com>
To: Postgresql Novice <pgsql-novice(at)postgresql(dot)org>
Subject: Passing multiple rows to a function?
Date: 2005-04-24 00:00:55
Message-ID: fa96e3c605042317007f2df037@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I know that you can pass rows/records to a function but what about a
few rows? Is that possible?

For example, I'd like to send to a function a number of rows from the
"workers" table (e.g "select * from workers where age<10") and the
function will return their summed salary.

--
ICQ: 1912453
AIM: VitalyB1984
MSN: tmdagent(at)hotmail(dot)com
Yahoo!: VitalyBe

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-04-24 00:21:31 Re: Passing multiple rows to a function?
Previous Message Bruno Wolff III 2005-04-23 17:38:44 Re: SSL use