id name info
1 AAA error
2 AAA warning
3 AAA ok
4 BB update
5 BB yes
6 C hello
.......
数据有很多
我现在要从中查出,name一样的info,希望的结果如下
name info
AAA error;warning;ok
BB update;yes
C hello
要求用一句sql实现,坐等~
...全文
433打赏收藏
在线等 一个Sql语句
我现在有一张表 数据如下 id name info 1 AAA error 2 AAA warning 3 AAA ok 4 BB update 5 BB yes 6 C hello ....... 数据有很多 我现在要从中查出,name一样的info,希望的结果如下 name info AAA error;warning;ok BB update;yes C hello 要求用一句sql实现,坐等~