Mysql group_concat () function traps

Source: Internet
Author: User

Mysql group_concat () function traps my colleague sent me a rest interface today saying there should be data, but no data was found. Solution: After troubleshooting, we found that mysql's group_concat () function only returns a 1024-length string by default, and the output variable defined in my stored procedure is out board_list VARCHAR (4000 ), www.2cto.com. The maximum returned value of this stored procedure is 100000 characters. when group_concat_max_len = 200000 is added to ini, the output variable definition is changed to out board_list VARCHAR (200000) to solve the problem. Author: sdu_wizard

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.