1

Can I create a query using "replace" to remove more than one character\string from a column content ?

For example I have:

UPDATE table1 SET column1 = REPLACE(column1, '\r\n', '');

But what if I want to remove multiple characters or strings like:

<br />
<&nbsp>
<\r> 

Is it possible to run this in single query ?

1 Answer 1

2

cascade it

UPDATE table1 
SET column1 = replace(replace(REPLACE(column1, '\r\n', ''), '<br />',''), '<\r>','')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.