111,129
社区成员
发帖
与我相关
我的任务
分享
A B C
001 add a
001 add b
002 del b
002 del c
003 sel c
我帮你用逗号隔开吧:假如结果表名为:table
select distinct A,B,
replace(replace((select C From table X where A=t.A and B=t.B for xml auto),'<x C="',''),'"/>',',') as tt
from table t

等着高手呢,还没来??