2014年7月3日

s​q​l​s​e​r​v​e​r​结​果​集​转​为​字​符​串

摘要: 比如有语句selectusernamefromEmployee返回结果是:username张三李四王五怎么输出一个字符串类似:张三,李四,王五答:declare@svarchar(1000)select@s=isnull(@s+',','')+usernamefromEmployeeselect@s... 阅读全文

posted @ 2014-07-03 15:32 Charles. 阅读(248) 评论(0) 推荐(0) 编辑

导航