Answer the question
In order to leave comments, you need to log in
How does GROUP_CONCAT work?
Let's say there are 2 tables:
users
pets
I make a query:
select users.id_user,users.name, GROUP_CONCAT(pets.pet SEPARATOR ', ') AS pets FROM users LEFT JOIN pets ON users.id_user=pets.id_user;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question