Do I have use the prefix N in the “insert into” statement for unicode?

后端 未结 4 2168
不知归路
不知归路 2020-12-14 22:15

Like:
insert into table (col) values (N\'multilingual unicode strings\')

I\'m using SQL Server 2008 and I already use nVarChar as the column data type.

4条回答
  •  庸人自扰
    2020-12-14 23:03

    Best practice is to use parameterisation in which case you don't need the N prefix.

提交回复
热议问题