Re: tab_to_sting

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ramesh T <rameshparnanditech(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: tab_to_sting
Date: 2014-07-24 14:16:53
Message-ID: 53D11555.2060206@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/24/2014 07:11 AM, Ramesh T wrote:
> hi ,
> i looked into that link ,when i run string_agg does not exist returns
> ,But i'm using function here not paasing table to the function only i'm
> passing column name and delimiter to the function from select statement
> please look into the my first post..

What version of Postgres are you using?

The query below should work:

SELECT deptno, string_agg(employee, ',')
FROM emp
GROUP BY deptno;

> thanks,
> ram

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ramesh T 2014-07-24 14:22:59 Re: tab_to_sting
Previous Message Adrian Klaver 2014-07-24 14:12:27 Re: tab_to_sting