我有一个表,其中有 2 个字段:Logid
和Type
:
+---------+---------+
| Logid | Type |
+---------+---------+
| 1 | PHP |
| 2 | Mysql |
| 3 | PHP |
| 4 | JAVA |
| 5 | PHP |
| 6 | MYSQL |
+---------+---------+
我需要Logid
按logs_operationtype
组获取所有内容,
我需要将输出获取为:
+------------+---------+
| Logid | Type |
+------------+---------+
| 1,3,5 | PHP |
| 2,6 | Mysql |
| 4 | JAVA |
+------------+---------+