Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Replace in table
Originally posted by Detlef Jockheck
> Hi,
>
> how can I replace "a" with "abc" in a column? I would prefer a sql-
> solution.
>
> eg:
> column_old
> a
> hda
> jkaj
>
> column_new
> abc
> hdabc
> jkabcj
>
> ciao
> Detlef
Unsurprisingly, you would use the REPLACE function:
SELECT REPLACE(column_old,'a','abc') AS column_new FROM mytable;
-- Posted via http://dbforums.comReceived on Tue Aug 26 2003 - 07:28:39 CDT
![]() |
![]() |