mysql执行时报Row xxx was cut by GROUP_CONCAT(),是因为group_concat_max_len参数默认限制做大长度为1024,可用如下语句查询:
show variables like "group_concat_max_len";
临时修改,即将默认值调大,
SET group_concat_max_len=102400;
临时全局改
SET GLOBAL group_concat_max_len=102400;
但重启会恢复成原来的,另一种方法是在配置文件中改,然后重启mysql
在[mysqld]节点中添加group_concat_max_len=102400