Storing ampersand in database

后端 未结 2 829
长情又很酷
长情又很酷 2021-01-23 09:26

I am currently working with an sql 2008 database. Many of the entries have ampersands stored thusly \'Arts & Culture\' Should we be storing the escaped version in the databa

2条回答
  •  温柔的废话
    2021-01-23 10:22

    SQL Server will store Arts & Culture just fine, into either a VARCHAR(x) or a NVARCHAR(x) (Unicode-variant - 2 bytes per character) field.

    From a database point of view, there's absolutely no need or no point in escaping anything.

提交回复
热议问题