group_concat 长度限制,排序和设置分隔符

select aid,group_concat(bid order by bid separator ',') as bid_str from tbl group by aid;

 

SET GLOBAL group_concat_max_len = 1024;

 

show variables like "group_concat_max_len";

posted @ 2015-08-22 10:35  chy1000  阅读(13479)  评论(0编辑  收藏  举报