SELECT company_id, string_agg(employee, ', ')
FROM mytable
GROUP BY company_id;

懂得,原来世界如此简单!