sql server - Remove special character in sql -


replace(ab.firstname,', '') 

how can remove character ' string in sql

you need double single quotes below

replace(ab.firstname, '''', '') 

or

declare @name nvarchar(50) = 'ab''c' select replace(@name,'''', '') 

Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -