Re: replace text function - Mailing list pgsql-general

From Darren Ferguson
Subject Re: replace text function
Date
Msg-id Pine.LNX.4.44.0211061806050.8014-100000@thread.crystalballinc.com
Whole thread Raw
In response to replace text function  ("Mark Wilson" <mark@mediasculpt.com>)
List pgsql-general
There is a function called TRANSLATE

This will do the trick

HTH

On Thu, 7 Nov 2002, Mark Wilson wrote:

> Hi all,
>
> I'm trying to find a function that will replace one word with another in a
> string.
>
> e.g. select <replace function>('bob was here, bobina wasnt', 'bob', 'mike');
> will return "mike was here, mikeina wasnt"
>
> Is there such a function already written in PostGreSQL?
>
> Thanks in advance,
> Mark
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

--
Darren Ferguson


pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: replace text function
Next
From: "Andrew Bartley"
Date:
Subject: bit strings