I'm trying to insert some text data into a table in SQL Server. The text includes a single quote(') like (New CCTest's,Test Security's..).
I am using IN operator in where query like below.
SELECT * FROM CostCenters acc WHERE acc.CCName IN ('New CCTest's','Test Security's')
but it throw me errors : Incorrect syntax near 's'.
Also I have tried using double quotes, but it threw me some errors.
SELECT * FROM CostCenters acc WHERE acc.CCName IN ('New CCTest"s','Test Security"s')
How do I escape that?