I have a table X with column Y, that contains text like this:
Click <a href=""http://www.stackoverflow.com"">here</a> to redeem
I need it turned into:
Click <a href="http://www.stackoverflow.com">here</a> to redeem
ie. remove the extra pair of quotes
The text outside of the “”url”” may be anything.
Is it something like this?
Update X SET Y = REPLACE(Y, '""%""', '"%"' );
REPLACEreplaces all occurences of the 2nd parameter with the 3rd parameter: