SQL Server nchar列数据相等

时间:2016-01-14 10:59:34

标签: sql-server

我有一个奇怪的问题。在我的SQL Server数据库中,有一个包含nchar(8)列的表。我在其中插入了几行,其中包含nchar(8)列的不同Unicode数据。

现在我点这样的查询

select * 
from table 
where nacharColumnName = N'㜲㤵㠱㠷㔳'

它为我提供了一行,其中包含㤱㔱㄰〴as'作为nchar(8)列的unicode数据。

SQL Server如何比较unicode数据?

1 个答案:

答案 0 :(得分:0)

您应该配置列(或整个数据库)排序规则,以便相等和Cannot read property 'split' of undefined运算符按预期工作。

的简体中文