--测试:
declare @a nchar(10)
set @a=nchar(156)select @a,unicode(@a)--结果:
---------- -----------
œ 156(所影响的行数为 1 行)
declare @a nchar(10)
set @a=nchar(156)select @a,unicode(@a)--结果:
---------- -----------
œ 156(所影响的行数为 1 行)
--看下面的测试:declare @a nchar(10)
set @a='œ'select @a,unicode(@a)/*--结果:
---------- -----------
? 63(所影响的行数为 1 行)
--*/
set @a=N'œ'select @a,unicode(@a)/*--结果:
---------- -----------
œ 156(所影响的行数为 1 行)
--*/
我的数据类型用的是varchar或者nchar,没有你说的unicode类型阿!
nvarchar/nchar/ntext就是unicode类型
以及在录入数据时要注意的处理方法.各种程序的写法不同,不可能用每种程序给你写一种方法吧.