declare @schoolName varchar(max) = 'children's Garden'
select * from schools where Schoolname like @schoolName+'%'
This is my SQL query. When I store a string with an apostrophe there is error. How can I overcome this?
The variable @schoolName
is coming from the code.