From: Michael Fuhr <mike@fuhr.org>
To: sathish kumar shanmugavelu <sathishkumar.shanmugavelu@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Aggregate function for a text column
Date: Fri, 3 Mar 2006 22:00:43 -0700
Message-ID: <20060304050043.GA55618@winnie.fuhr.org> (raw)
In-Reply-To: <ee0ad3a30603032045wce1df2ao959a673205cd9f44@mail.gmail.com>
References: <ee0ad3a30603032045wce1df2ao959a673205cd9f44@mail.gmail.com>
On Sat, Mar 04, 2006 at 10:15:46AM +0530, sathish kumar shanmugavelu wrote:
> Now i want a result like below
> 'Praveen Systems, Zigma Systems, HCL Tech, Vela Book Shop, Senthil
> Books, Usha,
> Electricals, National Scientific Company, Indian Oil Corporation'
Will something like this work?
SELECT array_to_string(ARRAY(SELECT supplier_name FROM tablename), ', ');
--
Michael Fuhr
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mike@fuhr.org, sathishkumar.shanmugavelu@gmail.com
Subject: Re: Aggregate function for a text column
In-Reply-To: <20060304050043.GA55618@winnie.fuhr.org>
References: <ee0ad3a30603032045wce1df2ao959a673205cd9f44@mail.gmail.com> <20060304050043.GA55618@winnie.fuhr.org>
* 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