Replacing characters with specified one

Posted by mahesh on Stack Overflow See other posts from Stack Overflow or by mahesh
Published on 2010-04-28T12:47:44Z Indexed on 2010/04/28 12:53 UTC
Read the original article Hit count: 339

Filed under:
|
|
|
|

Hello All,

I have a string as follows - MFMFMF

now i want to change this string to FMFMFM how to do this , help needed pls

i had tried

select replace(replace('mfmfmf','M','F'),'F','M') this gives me result - MMMMMM which i donot what i want the output to be FMFMFM Need your help

D.Mahesh

© Stack Overflow or respective owner

Related posts about sql

Related posts about query