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";

相关文章:

  • 2021-06-21
  • 2022-02-16
  • 2021-09-26
  • 2021-05-24
  • 2022-02-03
  • 2022-01-01
  • 2021-09-17
猜你喜欢
  • 2022-12-23
  • 2021-08-17
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
相关资源
相似解决方案