pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Tripura <k_tripura@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Append n Rows into a Single Row
Date: Sat, 18 Jun 2011 21:33:54 -0600
Message-ID: <4DFD6E22.1090700@gmail.com> (raw)
In-Reply-To: <1308356423557-4500306.post@n5.nabble.com>
References: <1308356423557-4500306.post@n5.nabble.com>

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.
>
>   



view thread (5+ messages)  latest in thread

Message-ID: <4DFD6E22.1090700@gmail.com>
Permalink:  ../4DFD6E22.1090700@gmail.com/
Also on:    postgresql.org/message-id/4DFD6E22.1090700@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: robjsargent@gmail.com, k_tripura@hotmail.com
  Subject: Re: Append n Rows into a Single Row
  In-Reply-To: <4DFD6E22.1090700@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox