MYSQL CONCAT MAX LENGTH

后端 未结 2 1029
轻奢々
轻奢々 2020-12-10 04:05

Following this post: POST ABOUT CONCAT My problem is that i have many rows CONCAT into one row. For example if i have 10 rows with string around 50 chars, my qu

2条回答
  •  失恋的感觉
    2020-12-10 04:56

    You need change group_concat_max_len default value in the bellow config file   
    **my.cnf file(Linux) and my.ini file(windows)**   
    
    [mysqld]//Add this line group_concat_max_len=15000 under mysqld section
    
    group_concat_max_len=15000
    
    Note: After change is done You need to restart your MySQL server.   
    my.cnf file path in linux :   
     1. /etc/my.cnf   
    2./etc/mysql/my.cnf   
    3.$MYSQL_HOME/my.cnf   
    4.[datadir]/my.cnf   
    5.~/.my.cnf  
    

提交回复
热议问题