mysql group concat
SELECT GROUP_CONCAT(DISTINCT categories ORDER BY categories ASC SEPARATOR ' ') FROM table
0
0
/* By deafult separe itens by "," */
group_concat(p.nameItem) as listProdItem
/* Used <br> to list itens one below the other in HTML page */
group_concat(p.nameItem separator '<br>') as listProdItem
Thank you!
0
0
5
2
mysql> select Id,group_concat(Name SEPARATOR ',') as GroupConcatDemo from GroupConcatenateDemo
-> group by Id;
Thank you!
2
0
4
2
GROUP_CONCAT(eng_category_name SEPARATOR ',') as eng_category_name
Thank you!
2
0
3.78
9
SELECT li.client_id, group_concat(li.percentage ORDER BY li.views ASC) AS views,
group_concat(li.percentage ORDER BY li.percentage ASC)
FROM li GROUP BY client_id
Thank you!
9
0
4.17
6
GROUP_CONCAT(expr);
Thank you!
6
0
Are there any code examples left?
New code examples in category SQL