Escape Character in SQL Server

前端 未结 9 1417
时光取名叫无心
时光取名叫无心 2020-11-29 03:22

I want to use quotation with escape character. How can I do?

I have received error in SQL Server

Unclosed quotation mark after the character strin

9条回答
  •  Happy的楠姐
    2020-11-29 03:37

    You can escape quotation like this:

    select 'it''s escaped'
    

    result will be

    it's escaped
    

提交回复
热议问题