SELECT id,STUFF((SELECT ','+value FROM tb t WHERE id=tb.id FOR XML PATH('')), 1, 1, '')FROM tbGROUP BY id 我试了下,我的怎么不报错