In MySQL, is it possible to get more than 1024 characters back from GROUP_CONCAT

后端 未结 1 1836
滥情空心
滥情空心 2020-12-09 14:48

I have a query which returns the count of a status that needs some very complex work to calculate. The user wants to drill down into that list, and I thought the easiest way

相关标签:
1条回答
  • 2020-12-09 15:50

    You need to set group_concat_max_len to a higher value. This can be done on a session or global level. The following query sets the max length to 10,000 for the rest of the queries in that session:

    SET SESSION group_concat_max_len = 10000;
    

    What you're running into is the group_concat default max of 1024.

    0 讨论(0)
提交回复
热议问题