I have some Unicode characters in an NVarchar
field named "PostalCode". When I convert them to Varchar
, there is a ?
in the result.
My code is:
select PostalCode, cast((PostalCode) as varchar)) as val from table
and the result is:
PostalCode | val
053000 | 053000?
Here I am getting a ?
in the result. Is there any way to remove such special characters?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…