Re: how to replace

From: "Anthony Molinaro" <amolinaro(at)wgen(dot)net>
To: "Michael Höller" <MichaelHoeller(at)t-online(dot)de>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to replace
Date: 2005-09-08 21:40:09
Message-ID: 3C6C2B281FD3E74C9F7C9D5B1EDA4582182456@wgexch01.wgenhq.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of "Michael Höller"
Sent: Thursday, September 08, 2005 5:25 PM
To: pgsql-sql(at)postgresql(dot)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(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-09-08 22:04:27 Re: Statistics from Sequences
Previous Message Owen Jacobson 2005-09-08 21:33:00 Re: how to replace