一个表中有两个字段A  B
1  abc
1  bcd
1  asdfg
2  xxx
2  bbb
2  aaa
我想通过sql 查询出结果为:A  B
1  abc,bcd,asdfg
2  xxx,bbb,aaa如何写sql 语句?