字段类型为nchar(1)
语句如下:
case a.Sex
when '1' then '男'
when '2' then '女'
else '不确定'
end as Sex
以前查询正常,但昨天SQL SERVER2000換了服务器后,查询的结果全为“?”,请问是什么原因。
在原服务器上运行正常。
语句如下:
case a.Sex
when '1' then '男'
when '2' then '女'
else '不确定'
end as Sex
以前查询正常,但昨天SQL SERVER2000換了服务器后,查询的结果全为“?”,请问是什么原因。
在原服务器上运行正常。
when '1' then N'男'
when '2' then N'女'
else N'不确定'
end as Sex