【发布时间】:2014-01-15 16:03:46
【问题描述】:
以下语句返回“错误代码:1292。截断不正确的 INTEGER 值:'95.00' 1.132 秒”
update new2006 set new2006.emp=cast(emp as unsigned) where IsNum(emp)=0;
但是如果我使用下面的语句,我可以成功得到结果 95。
select cast(emp as unsigned) from new2006 where IsNum(emp)=0;
PS:emp的数据类型是varchar(7)。
【问题讨论】:
-
请显示表结构
-
emp的数据类型是varchar(7)