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

From: Andreas <maps(dot)on(at)gmx(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: How to remove a set of characters in text-columns ?
Date: 2011-06-30 19:28:47
Message-ID: 4E0CCE6F.70001@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Crawford 2011-06-30 19:49:20 Re: How to remove a set of characters in text-columns ?
Previous Message Pavel Stehule 2011-06-27 13:40:35 Re: best performance for simple dml