mysql group by concat rows code example
Example 1: group by mysql and concatenate string
mysql> select Id,group_concat(Name SEPARATOR ',') as GroupConcatDemo from GroupConcatenateDemo
-> group by Id;
Example 2: mysql concatenate select results
SELECT person_id, GROUP_CONCAT(hobbies SEPARATOR ', ')
FROM peoples_hobbies
GROUP BY person_id;
Example 3: group_concat in mysql
GROUP_CONCAT(eng_category_name SEPARATOR ',') as eng_category_name