select stuff((select ','+ cast(appuserid as nvarchar(50)) from T_appUser_community where communityid=2 for xml path('')),1,1,'')