Re: Change a character in a text field

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: Change a character in a text field
Дата
Msg-id
486A59E1.EE98.0025.0@wicourts.gov
Ответ на
Список
Дерево обсуждения
Change a character in a text field Naomi Walker <nwalker@mhs.mphasis.com>
Re: Change a character in a text field "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Change a character in a text field Karen Stone <kstone@mhs.mphasis.com>
Re: Change a character in a text field Naomi Walker <nwalker@eldocomp.com>
Re: Change a character in a text field "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Change a character in a text field Naomi Walker <nwalker@mhs.mphasis.com>
>>> Naomi Walker  wrote: 
> Is there some way with a SQL state to interrogate a text field, and 
> replace characters.
> 
> For example, we would like all "|"'s to be changed to something else,
on 
> a regular basis...
 
It sounds like you might want to look at the regexp_replace function:
 
http://www.postgresql.org/docs/8.3/interactive/functions-matching.html#FUNCTIONS-POSIX-REGEXP
 
Be sure to use a WHERE clause on your UPDATE with the ~ operator.
 
-Kevin
В списке pgsql-admin по дате отправления
От: Naomi Walker
Дата:
От: Rafael Domiciano
Дата:
Сообщение: Re: Configuring Shared Buffers
FAQ