string_agg(url,’,’) 把相同的rep_id路径查询并合并成一条 SELECT rep_id,string_agg(url,',') from xj_repair_pic GROUP BY rep_id