Is there a function in mysql that would return all items in just one row?
EXAMPLE:
Table:
| id | name |
-------------
| 1 | john |
| 2 | mike |
| 3 | jane |
Query:
SELECT concat_name(name) FROM tbl_name
concat_name
as the function.
Expected Result:
| name |
-------------------
| john, mike, jane|