Re: Remove Duplicate Words from a field - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: Remove Duplicate Words from a field
Date
Msg-id 4DD11C10.6030104@iol.ie
Whole thread Raw
In response to Remove Duplicate Words from a field  (Sukuchha Shrestha <sukuchha@yahoo.de>)
List pgsql-general
On 16/05/2011 13:34, 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 ?

Maybe a regular expression, using regexp_replace()?

   http://www.postgresql.org/docs/8.4/static/functions-string.html

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: Sukuchha Shrestha
Date:
Subject: Remove Duplicate Words from a field
Next
From: Sim Zacks
Date:
Subject: Re: Remove Duplicate Words from a field