PostgreSQL查询集合结果用逗号分隔返回字符串 函数:string_agg(rid||'' , ',') SQL:SELECT string_agg(rid||'' , ','),year FROM tdfwzs_jbxx GROUP BY year;