Re: How to get a result in one row

Поиск
Список
Период
Сортировка
От Frank Bax
Тема Re: How to get a result in one row
Дата
Msg-id 5.2.1.1.0.20060621140420.04580180@pop6.sympatico.ca
обсуждение исходный текст
Ответ на How to get a result in one row  (virgi@lettere.unipd.it)
Ответы Re: How to get a result in one row
Список pgsql-sql
At 11:06 AM 6/21/06, virgi@lettere.unipd.it wrote:
>returns:
>    id | nick
>------+------
>22192 | A
>22192 | T
>(2 rows)
>
>I'd like to get the result in only one row:
>    id | nick
>------+------
>22192 | A,T


This question is in the archives (probably more than once).  The answer is...

Read the online docs about aggregate functions.  There is an example that 
does (almost) exactly what you are asking.



В списке pgsql-sql по дате отправления:

Предыдущее
От: Jeff Frost
Дата:
Сообщение: Re: keeping last 30 entries of a log table
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: How to get a result in one row