Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Replace substrings in a column

Re: Replace substrings in a column

From: Jeremy <jeremy0505_at_gmail.com>
Date: Fri, 18 Nov 2005 16:19:01 -0000
Message-ID: <MPG.1de80e12eb630098a02d@news.individual.net>


In article <f14d4$437df8b7$d4badae4$30839_at_news.chello.at>, Robert Wehofer says...
> Hello!
>
> Which UPDATE statement do I need to replace a substring in a column.
>
> e.g.
>
> old value = "\\ComputerA\Projects\aaa.txt"
> new value = "C:\Projects\aaa.txt"
>
> substring "\\ComputerA" hast to be replaced by "C:"
>

update tab
set col = replace(col,'string1','string2') where ....

-- 

jeremy
Received on Fri Nov 18 2005 - 10:19:01 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US