解决mysql函数group_concat长度限制
原文地址:https://blog.****.net/qw222pzx/article/details/80867797
1. GROUP_CONCAT有个最大长度的限制,超过最大长度就会被截断掉,你可以通过下面的语句获得:
SELECT @@global.group_concat_max_len;
show variables like "group_concat_max_len";
2.在MySQL配置文件中my.conf或my.ini中添加:
#[mysqld]
group_concat_max_len=102400
3.重启MySQL服务