Jan 27, 2022
I am going to explain you example of MySQL concat columns with comma. You will learn how to how to concatenate two columns in MySQL with comma. I would like to how to MySQL concat columns with comma. This article will give you simple example of how to concatenate columns with comma in SQL query.
We will use get search concat with comma in MySQL. You can understand a concept of search how to concat columns with comma in MySQL server.
You can see both example of how to MySQL concat with comma.
Let's see bellow example:
Solution SQL Query:
GROUP_CONCAT(users_role.name) AS role_list
INNER JOIN users_role ON users_role.user_id = users.id
GROUP BY users.id
I hope it will help you...