Image for post
Image for post

MySQL Group Concat Function

select 
country,
state,
group_concat(city) as cities
from locations
group by country, state

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store