pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedhow to replace
4+ messages / 4 participants
[nested] [flat]
* how to replace
@ 2005-09-08 21:25 "Michael Höller" <MichaelHoeller@t-online.de>
2005-09-09 05:08 ` Re: how to replace A. Kretschmer <akretschmer@despammed.com>
0 siblings, 1 reply; 4+ messages in thread
From: "Michael Höller" @ 2005-09-08 21:25 UTC (permalink / raw)
To: pgsql-sql
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to replace
2005-09-08 21:25 how to replace "Michael Höller" <MichaelHoeller@t-online.de>
@ 2005-09-09 05:08 ` A. Kretschmer <akretschmer@despammed.com>
0 siblings, 0 replies; 4+ messages in thread
From: A. Kretschmer @ 2005-09-09 05:08 UTC (permalink / raw)
To: pgsql-sql
am 08.09.2005, um 23:25:05 +0200 mailte "Michael Höller" folgendes:
> Hello,
>
> I initially thought this is simple.. I want to relpace a character to
> nothing. Eg. relace "B" to "" -> ABCD to ACD.
In the new version 8.1 there are a regex_replace() - function. A other
solution: write your own function with plperl.
Regards, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to replace
@ 2005-09-08 21:33 Owen Jacobson <ojacobson@osl.com>
0 siblings, 0 replies; 4+ messages in thread
From: Owen Jacobson @ 2005-09-08 21:33 UTC (permalink / raw)
To: "Michael Höller" <MichaelHoeller@t-online.de>; pgsql-sql
Michael Höller wrote:
> 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 ?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: how to replace
@ 2005-09-08 21:40 Anthony Molinaro <amolinaro@wgen.net>
0 siblings, 0 replies; 4+ messages in thread
From: Anthony Molinaro @ 2005-09-08 21:40 UTC (permalink / raw)
To: "Michael Höller" <MichaelHoeller@t-online.de>; 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.org so that your
message can get through to the mailing list cleanly
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-09-09 05:08 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-09-08 21:25 how to replace "Michael Höller" <MichaelHoeller@t-online.de>
2005-09-09 05:08 ` A. Kretschmer <akretschmer@despammed.com>
2005-09-08 21:33 Re: how to replace Owen Jacobson <ojacobson@osl.com>
2005-09-08 21:40 Re: how to replace Anthony Molinaro <amolinaro@wgen.net>
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