Categories
How to merge multiple rows from MySQL DB into one?
There is a table , you need to merge the rows from the clothes_name column so that the result is: Polo, Versache, Adidas. How to implement it? Tell me please.
Answer the question
In order to leave comments, you need to log in
SELECT GROUP_CONCAT(`clothes_name` SEPARATOR ', ') FROM `table` GROUP BY 1
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question