oracle中group by字符拼接

字符拼接用逗号隔开

select userid as userId,(LISTAGG(campusname,',') WITHIN group(order by campusname))as campusname
 		from T_SYS_CAMPUS_user group by userid

你可能感兴趣的:(数据库)