U kunt string_agg
. gebruiken in plaats daarvan.
PostgreSQL 9.1.6 Schema-instellingen :
create table T
(
Name varchar(10)
);
insert into T values('Kalle');
insert into T values('Pelle');
insert into T values('Urban');
Query 1 :
select string_agg(Name, ',') as Names
from T
| NAMES |
---------------------
| Kalle,Pelle,Urban |