Re: replace text function

Поиск
Список
Период
Сортировка
От Darren Ferguson
Тема Re: replace text function
Дата
Msg-id Pine.LNX.4.44.0211061806050.8014-100000@thread.crystalballinc.com
обсуждение исходный текст
Ответ на replace text function  ("Mark Wilson" <mark@mediasculpt.com>)
Список 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 по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: replace text function
Следующее
От: "Andrew Bartley"
Дата:
Сообщение: bit strings