1. 程式人生 > >Mysql中使用Group_Concat將列組合進來。

Mysql中使用Group_Concat將列組合進來。

http 使用 logs ima 組合 aid pre 技術 img

一、上例子:

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將列組合進來。