pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas <maps.on@gmx.net>
To: pgsql-sql@postgresql.org
Subject: How to remove a set of characters in text-columns ?
Date: Thu, 30 Jun 2011 21:28:47 +0200
Message-ID: <4E0CCE6F.70001@gmx.net> (raw)

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



view thread (5+ messages)  latest in thread

Message-ID: <4E0CCE6F.70001@gmx.net>
Permalink:  ../4E0CCE6F.70001@gmx.net/
Also on:    postgresql.org/message-id/4E0CCE6F.70001@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: maps.on@gmx.net
  Subject: Re: How to remove a set of characters in text-columns ?
  In-Reply-To: <4E0CCE6F.70001@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox