22,209
社区成员
发帖
与我相关
我的任务
分享
select a.groupid,STUFF((select ';'+cellphone from mdao_member where groupid=a.groupid for xml path('')),1,1,'') as cellphone
from mdao_member as a where a.accountid = ? group by a.groupid
select cellphone,count(1) from mdao_member where accountid = ? group by cellphone