摘要: SQL2005中的方法create table tb(id int, value varchar(10))insert into tb values(1, 'aa')insert into tb values(1, 'bb')insert into tb values(2, 'aaa')insert into tb values(2, 'bbb')insert into tb values(2, 'ccc')goselect id, [value] = stuff((select ',' + [va 阅读全文
posted @ 2011-05-10 10:56 潇客的技术博客 阅读(5738) 评论(0) 推荐(1) 编辑