Re: Aggregate function for a text column - Mailing list pgsql-jdbc

From Michael Fuhr
Subject Re: Aggregate function for a text column
Date
Msg-id 20060304050043.GA55618@winnie.fuhr.org
Whole thread Raw
In response to Aggregate function for a text column  ("sathish kumar shanmugavelu" <sathishkumar.shanmugavelu@gmail.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: "sathish kumar shanmugavelu"
Date:
Subject: Aggregate function for a text column
Next
From: "Adam Zimowski"
Date:
Subject: JDBC support for 8.1 OUT parameters