3

I have an table Employee, with a Description column. In the description column I have the text <br />. Now I need to replace this text with the text <br>.

Is there any way that i could modify the value in the column itself?

2 Answers 2

4
Update Employee
Set Description = Replace(Description , '<br />','<br>')
Where IDColumn = RecordIdValue

You can omit the where clause if you want to update ALL rows in the table.

Sign up to request clarification or add additional context in comments.

Comments

2

Use the REPLACE function with a UPDATE statement:

UPDATE EMployee
SET Description = REPLACE(Description, 'find this text', 'replacement')

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.