-1
ile Concat sonuçları PostgreSQL kullanıyorum. Sütunları olan bir tablom var: id, şehir, ülke. Her ülke için birkaç şehrim var. ÖrneğinPostgreSQL
: Ben
Bunu nasıl yapabilirimCountry Cities
Brazil (Rio de Janeiro)
Argentina (Buenos Aires, Bariloche)
gibi bir şey döndüren bir SEÇ istiyorum
ID Country City
1 Brazil Rio de Janeiro
2 Argentina Buenos Aires
3 Argentina Bariloche
Ve?
Şimdiye kadar ne denediniz? http://www.postgresql.org/docs/9.4/static/functions-aggregate.html –
Olası http://stackoverflow.com/questions/29557563/whats-the-equivalent-for-listagg-in-postgres kopyası – leqid
geliştirilmiş biçimlendirme – showdev