group concatenate mysql code example
Example 1: mysql group_concat distinct
SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table
Example 2: group by mysql and concatenate string
mysql> select Id,group_concat(Name SEPARATOR ',') as GroupConcatDemo from GroupConcatenateDemo
-> group by Id;
Example 3: mysql separator
GROUP_CONCAT(artists.artistname SEPARATOR '----')
Example 4: group_concat in mysql
GROUP_CONCAT(eng_category_name SEPARATOR ',') as eng_category_name