I\'m trying to insert some text data into a table in SQL Server 9.
insert
SQL Server
The text includes a single quote(\').
How do I escape that?
This should work
DECLARE @singleQuote CHAR SET @singleQuote = CHAR(39) insert into my_table values('hi, my name'+ @singleQuote +'s tim.')