group_concat 默认长度1024
执行:
SET GLOBAL group_concat_max_len=102400;
SET SESSION group_concat_max_len=102400;
可以验证是否是这个问题。
执行sql在mysql重启之后就又恢复了1024。
可以在mysql的配置文件“my.ini”或“my.conf”加上以下语句,然后重启mysql
group_concat_max_len=-1 (表示最大长度 4294967295)
或
group_concat_max_len=102400 (固定长度)