How do I escape a single quote in SQL Server?

前端 未结 13 1849
情话喂你
情话喂你 2020-11-21 07:01

I\'m trying to insert some text data into a table in SQL Server 9.

The text includes a single quote(\').

How do I escape that?

13条回答
  •  礼貌的吻别
    2020-11-21 07:25

    This should work: use a back slash and put a double quote

    "UPDATE my_table SET row =\"hi, my name's tim.\";
    

提交回复
热议问题