我的查询是:
select d.id,array_to_string(array_accum('name',',')) as name from (select * from temp1 a left join temp3 c on a.id=c.leftid left join temp2 b on b.id=c.rightid) d group by d.id;
但它给了我以下错误:
ERROR: function array_accum(unknown, unknown) does not exist