很显然为长度不足导致
第一步:直接设置大小:
SET GLOBAL group_concat_max_len=10240000;
SET SESSION group_concat_max_len=10240000;
或者
SET GLOBAL group_concat_max_len=-1; -- 最大值
SET SESSION group_concat_max_len=-1 -- 最大值;
第二部:验证
select @@global.group_concat_max_len;
或者
show variables like 'group_concat_max_len';
如果还是不行,打开my.ini
在[mysqld]下新增配置:group_concat_max_len = 102400,重启Mysql即可。