请问SQL语句中的a=n'sfsf'中的n是什么意思?
存储过程中:
select * from sysobject where abc = 'aaa'
我们主管一定要让我在'aaa'前面加上一个n,变成select * from sysobject where abc = n'aaa'
说是规范化,请问这个n加了有什么特殊的意思吗??
问题点数:20、回复次数:8Top
1 楼yjzhg(执著)回复于 2004-12-01 10:56:09 得分 0
有Top
2 楼xingfuniao(幸福鸟)回复于 2004-12-01 10:56:27 得分 4
轉換為Unicode 編碼Top
3 楼suntt(两条腿的狗)回复于 2004-12-01 11:13:42 得分 4
nvarchar类型Top
4 楼tddw(承接各种项目)回复于 2004-12-01 11:20:02 得分 0
?一个是nvarchar类型
一个是轉換為Unicode 編碼
我该相信谁?Top
5 楼tddw(承接各种项目)回复于 2004-12-01 11:31:24 得分 0
晕,没有人帮助回答了?Top
6 楼xf2gl(雪之恋)回复于 2004-12-01 11:52:56 得分 4
nvarchar类型就是Unicode 編碼。Top
7 楼deeya()回复于 2004-12-01 12:13:31 得分 4
N表明:N后面的字符是UNICODE编码
你可以在帮助里输入“UNICODE”查看相关信息。
帮助里,关于UNICODE有几个例子,例子中的注释这样一句话:
Notice that there is an N before the start of the string, which
indicates that the data following the N is Unicode data.
Top
8 楼lh1979(rocket)回复于 2004-12-01 12:34:52 得分 4
Unicode字符集,必须加n,
我们平时用的是ASCII字符集,不用加的Top




