从数据类型 varchar 转换为 float 时出错。

select count(hjfs) from lyhiszyys.hiszyys.dbo.Mobile_ycpgjk where convert(float,hjfs) >=10 hjfs是varchar
select hjfs from lyhiszyys.hiszyys.dbo.Mobile_ycpgjk where convert(float,hjfs) >=10不报错 但是使用count之后就报错

数据类型 varchar 转换为 float 时出错
先把NVARCHAR转换成varchar然后,在转换float 就可以了。
应该是编码问题
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答