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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -