Re: Remove Duplicate Words from a field

From: Sim Zacks <sim(at)compulab(dot)co(dot)il>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Remove Duplicate Words from a field
Date: 2011-05-16 12:54:17
Message-ID: 4DD11E79.6070408@compulab.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I would use a plpython or plperl function

In python you can split the word into a list and then get unique items
and put it back in a string, for example.

Sim

On 05/16/2011 03:34 PM, Sukuchha Shrestha wrote:

> Dear All,
>
> I am new to Postgresql. I have a field with lots of dublicate words
> and i want to remove any dublicate word from that field.
>
> For example, if i have a field with a string " one, one, two, two,
> three", how would i get " one, two, three" only ?
>
> Any help is much apprecieated !
>
> Sukuchha

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Kalai R 2011-05-16 13:04:43 Postgre Installation Problem
Previous Message Raymond O'Donnell 2011-05-16 12:44:00 Re: Remove Duplicate Words from a field