1

I have a sample data:

table(id, name) with name(varchar(255))

with data is

table(1, 'test1')
...
     (999, 'test999')
...

Query is Select GROUP_CONCAT(name) AS name FROM table And result is test1test2...test155 => can't get all name of table table, How to fix it ?

4

1 回答 1

-1

尝试group_concat_max_lenSESSION之前查询中的大小增加为:

SET SESSION group_concat_max_len = 1000000;

group_concat_max_len 的 MySQL 手册

于 2012-07-30T03:58:44.193 回答