-1

I have a nvarchar column in a table that contains the character % in its text. I want to remove or substring this character from this text. Is there any way to do that?

6

2 Answers 2

9
UPDATE TableName SET ColumnName = REPLACE(ColumnName,'%','')
Sign up to request clarification or add additional context in comments.

Comments

0

If you want it from the query, then you can do this

SELECT REPLACE(columnName, '%', '') AS TrimmedValue

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.