Re: how to replace - Mailing list pgsql-sql

From Anthony Molinaro
Subject Re: how to replace
Date
Msg-id 3C6C2B281FD3E74C9F7C9D5B1EDA4582182456@wgexch01.wgenhq.net
Whole thread Raw
In response to how to replace  ("Michael Höller" <MichaelHoeller@t-online.de>)
List pgsql-sql
Michael, You practically solved it yourself in the subject of the email ;)
select replace('abcd','b','') from your_table;

Hope that helps, Anthony

-----Original Message-----
From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of "Michael Höller"
Sent: Thursday, September 08, 2005 5:25 PM
To: pgsql-sql@postgresql.org
Subject: [SQL] how to replace

Hello,

I initially thought this is simple.. I want to relpace a character to
nothing. Eg. relace "B" to "" ->  ABCD to ACD.

All me approches vaild but I am sure that I have seen it already and
think it was not tricky..

Can someone please help me ?

Thanks a lot
Michael




---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate      subscribe-nomail command to
majordomo@postgresql.orgso that your      message can get through to the mailing list cleanly 


pgsql-sql by date:

Previous
From: "Owen Jacobson"
Date:
Subject: Re: how to replace
Next
From: Michael Fuhr
Date:
Subject: Re: Statistics from Sequences