select ','+convert(nvarchar,ID) from vote_subject FOR XML PATH('')
返回的结果是这样的如,1,2,3,...................