Oralce writing:
select WM_CONCAT(A.title) as citys from tmpcity A
sql server writing:
select stuff((select ','+A.title from tmpCity A FOR xml PATH('')), 1, 1, '') as citys
MySQL writing:
select GROUP_CONCAT(A.title) as cities from tmpcity A; --default comma separated
select GROUP_CONCAT(A.title SEPARATOR ' ') as cities from tmpcity A; --separated by spaces