正如我在前面的评论中所写,MySQL手册说:
VARCHAR列中的值是可变长度的字符串。长度可以指定为0到65535之间的值。
因此,问题不在于字段的数据类型。
在MySQL手册也说:
结果被截断为由group_concat_max_len系统变量指定的最大长度,该默认值的默认值为1024。尽管返回值的有效最大长度受max_allowed_packet的值限制,但可以将其设置为更高的值。在运行时更改group_concat_max_len的值的语法如下,其中val是一个无符号整数:SET
[GLOBAL | SESSION] group_concat_max_len = val;
更改group_concat_max_len的值的选项是:
通过将以下内容附加到命令来更改MySQL启动时的值:
--group_concat_max_len=your_value_here
在您的MySQL配置文件(mysql.ini)中添加以下行:
group_concat_max_len=your_value_here
在MySQL启动后运行以下命令:
SET GLOBAL group_concat_max_len=your_value_here;
在打开MySQL连接后运行以下命令:
SET SESSION group_concat_max_len=your_value_here;
文档:SET,服务器系统变量:group_concat_max_len



