Re: How to remove a set of characters in text-columns ?

Поиск
Список
Период
Сортировка
От Steve Crawford
Тема Re: How to remove a set of characters in text-columns ?
Дата
Msg-id 4E0CD340.30809@pinpointresearch.com
обсуждение исходный текст
Ответ на How to remove a set of characters in text-columns ?  (Andreas <maps.on@gmx.net>)
Список pgsql-sql
On 06/30/2011 12:28 PM, Andreas wrote:
> Hi,
> how can I remove a set of characters in text-columns ?
> Say I'd like to remove { } ( ) ' " , ; . : !
> Of course I can chain replace ( replace ( replace ( replace ( ... , '' 
> ) .... and replace the chars one by one against an empty string ''.
>
> There might be a more elegant way.
> Is there ?
>
>
> regards
>
Look at regexp_replace()
http://www.postgresql.org/docs/9.0/static/functions-string.html
http://www.postgresql.org/docs/9.0/static/functions-matching.html#FUNCTIONS-POSIX-REGEXP

Cheers,
Steve



В списке pgsql-sql по дате отправления:

Предыдущее
От: Andreas
Дата:
Сообщение: How to remove a set of characters in text-columns ?
Следующее
От: Charlie
Дата:
Сообщение: Re: [SQL] How to remove a set of characters in text-columns ?