一、上例子:

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将列组合进来。

 

相关文章:

  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案