From: | Tripura <k_tripura(at)hotmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Append n Rows into a Single Row |
Date: | 2011-06-18 00:20:23 |
Message-ID: | 1308356423557-4500306.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Samuel Gendler | 2011-06-18 22:05:58 | Re: Append n Rows into a Single Row |
Previous Message | hatem gamal elzanaty | 2011-06-17 22:43:44 | pagination problem in postgresql need help |