摘要:
比如有语句selectusernamefromEmployee返回结果是:username张三李四王五怎么输出一个字符串类似:张三,李四,王五答:declare @s varchar(1000)select @s=isnull(@s+',','')+username from Employeeselect @s as username---------------------------------------------------------------------------- Author : htl258(Tony)-- Date : 2010-03- 阅读全文