我有一个这样的mysql表:
+------+-------------+----------+
| id | name | category |
+------+-------------+----------+
| 1 | product 1 |category-A|
| 2 | product 2 |category-B|
| 3 | product 3 |category-C|
| 4 | product 4 |category-B|
| 5 | product 5 |category-C|
| 6 | product 6 |category-A|
| 7 | product 7 |category-A|
| 8 | product 8 |category-C|
| 9 | product 9 |category-B|
+------+-------------+----------+
有没有像这样返回某物的函数?
category-A,category-B,category-C
注意:以后可能会添加新的类别。
谢谢 。