aggregate functions

From: Holger Klawitter <holger(at)klawitter(dot)de>
To: "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: aggregate functions
Date: 2000-06-19 08:15:26
Message-ID: 394DD69E.FB2EC3E@klawitter.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi there,

is there any easy way to add the string concatenation operator
as a collating operator? I would like to do something like:

id val
------
1 aa
1 bb
2 cc
2 dd
2 ee

select id,join(val,',') from table group by id

id join
-----------
1 aa,bb
2 cc,dd,ee

and it would be nice not having to revert to DBI :-)

Regards,
Mit freundlichem Gruß,
Holger Klawitter
--
Holger Klawitter +49 (0)251 484 0637
holger(at)klawitter(dot)de http://www.klawitter.de/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrea Aime 2000-06-19 08:24:17 Weird error on NT
Previous Message Pawe Dubin 2000-06-19 07:59:35 Re: Lock rekord