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

Поиск
Список
Период
Сортировка
От Charlie
Тема Re: [SQL] How to remove a set of characters in text-columns ?
Дата
Msg-id BLU0-SMTP1870ADD1AC3E8DDFBC4BBA3CE580@phx.gbl
обсуждение исходный текст
Список pgsql-sql
Would

regexp_replace(src_str, '[\{\}\[\]\(\)\.', '')

at

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

help?




----- Reply message -----
From: "Andreas" <maps.on@gmx.net>
Date: Thu, Jun 30, 2011 4:28 pm
Subject: [SQL] How to remove a set of characters in text-columns ?
To: <pgsql-sql@postgresql.org>

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

--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql





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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: How to remove a set of characters in text-columns ?
Следующее
От: Tim Landscheidt
Дата:
Сообщение: Re: How to remove a set of characters in text-columns ?