Re: Append n Rows into a Single Row

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема Re: Append n Rows into a Single Row
Дата
Msg-id 4DFD6E22.1090700@gmail.com
обсуждение исходный текст
Ответ на Append n Rows into a Single Row  (Tripura <k_tripura@hotmail.com>)
Ответы Re: Append n Rows into a Single Row  (Samuel Gendler <sgendler@ideasculptor.com>)
Список pgsql-sql
Look at the array aggregation functions here 
<http://www.postgresql.org/docs/9.0/static/functions-array.html>

Tripura wrote:
> Hi,
> I am totally new to PostgreSQL and this is my first script.
> Can anyone please help me with my following requirement 
>
> I have script that returns  1 column and 40 rows.
> My requirement is update this existing script to show all the 40 rows data
> in a single row as a string.
>
> For example 
> The current script returns, something like this 
> Tom
> Tad
> Max
> Ted
>
> I have to update the existing script to show the above results as follow
> Tom || Tad || Max || Ted 
>
> Something like colace in Ms sql
>
> Any help is really appriciated.
>
> Thankyou in Advance.
>
>
>
>
>
>
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/Append-n-Rows-into-a-Single-Row-tp4500306p4500306.html
> Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
>
>   


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

Предыдущее
От: Samuel Gendler
Дата:
Сообщение: Re: Append n Rows into a Single Row
Следующее
От: Samuel Gendler
Дата:
Сообщение: Re: Append n Rows into a Single Row