How can I update and replace part of string/text in SQL?
I want to be able to update my Article table, and substitute all of ’ with ' in Description field. How can something like this be done?
REPLACE(COLUMN_NAME,'’','''')
TRY this out.
UPDATE Article
set Description = replace(Description, '’','''')
TABLE key word in it and your replacement value is a and empty string '' and an extra single quote '.it should be ''''Msg 105, Level 15, State 1, Line 1 Unclosed quotation mark after the character string '') To get a single quote, you need '''' in the third parameter of the REPLACE() function.