MySQL group_concat_max_len in a query

后端 未结 5 1370
春和景丽
春和景丽 2021-02-05 16:27

I\'m searching a way to insert this

SET GLOBAL group_concat_max_len=15000

in an existing SQL query such as the following:

SELECT *         


        
5条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-05 16:50

    The maximum allowed result length in bytes for the GROUP_CONCAT() function. The default is 1024. mysql> show variables like 'group%';

    You change the value of group_concat_max_len. Either in your config file or setting the session variable, e.g. "SET @@group_concat_max_len = 2048;'

提交回复
热议问题