Home Forums SQL Server 2005 T-SQL (SS2K5) Data containing ' RE: Data containing '
roryp 96873
SSCertifiable
Points: 6649
More actions
January 30, 2014 at 2:51 pm
#1684859
If you're trying to include a single quotation mark in a string, you have to escape it with another single quote. So your code would look something like:
delete from mytable
where myvar like '%''%'