一、上例子:
select left(areaId,7) as CityId,group_concat(stationId) ,NameCn from `wd-area` where type=‘cn3k‘ and areaId like ‘10110%‘ group by cityid order by cityid;
二、效果图:
Mysql中使用Group_Concat将列组合进来。
原文:http://www.cnblogs.com/songxingzhu/p/7058632.html