What is the proper syntax for replacing characters?
My replace statement:
Select replace(note,’old’,’new’) from history
So I am trying to update instances of 'old' to 'new' in the note column of the history table.
The result: The updated text is displayed as I would it expect but the change is not committed so the actual update doesn't happen.
SystemAdmin 110000D4XK1143 Posts
Re: 'Replace' syntax2012-03-07T12:25:20ZThis is the accepted answer. This is the accepted answer.If you want to update column, you should use UPDATE statement IMHO.
UPDATE history SET note=replace(note,’old’,’new’)
-- WHERE ....if you do not want to update all fields put restriction here