postgresql 查询集合结果用逗号分隔返回字符串处理
SELECT string_agg(key||’’ , ‘,’) FROM table where item_id=item.id