Skip to content
Advertisement

Mysql – How to Join all the names that has the same value and transform into one

So i have this table in mysql

what I want to do is to join all the names that has the same value and transform into only one. How can i achieve that ?

Advertisement

Answer

For a single row, you can use group_concat():

You can adjust the separate to be what you want. The default is a comma.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement