S
S
sugarufc2015-05-09 21:22:01
PHP
sugarufc, 2015-05-09 21:22:01

How to merge multiple rows from MySQL DB into one?

There is a table 1d0cdfce52034f7ca2a76cde1057b41f.jpg
, 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

1 answer(s)
R
Rsa97, 2015-05-09
@sugarufc

SELECT GROUP_CONCAT(`clothes_name` SEPARATOR ', ') FROM `table` GROUP BY 1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question