解决mysql函数group_concat长度限制



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服务




猜你喜欢

转载自blog.csdn.net/qw222pzx/article/details/80867797