welcome to Qijie's Blog 薛其杰
随笔 - 217,  文章 - 0,  评论 - 20,  阅读 - 26万

It's declaring the string as nvarchar data type, rather than varchar

You may have seen Transact-SQL code that passes strings around using an N prefix. This denotes that the subsequent string is in Unicode (the N actually stands for National language character set). Which means that you are passing an NCHAR, NVARCHAR or NTEXT value, as opposed to CHAR, VARCHAR or TEXT.

To quote from Microsoft:

Prefix Unicode character string constants with the letter N. Without the N prefix, the string is converted to the default code page of the database. This default code page may not recognize certain characters.

posted on   零点零一  阅读(1115)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示