select group_concat(分公司) as 分公司名 from monthxd; 将所有分公司名拼接起来。
如果有重复值则使用distinct进行约束:
select group_concat(distinct 分公司) 分公司名 from orderq;