我有一个字段是varchar类型的,包含数字和日期字符串。我想更新该字段中所有大于720的数字。我首先尝试进行选择,但是出现了以下错误:
Conversion failed when converting the nvarchar value '16:00' to data type int.
这是我的查询:
select id, case(isnumeric([other08])) when 1 then [other08] else 0 end
from CER where sourcecode like 'ANE%' --and other08 > 720
当我取消最后一部分的注释时,它会失败。
我正在尝试获取所有大于720的数字,但我无法进行比较。在强制转换和转换时也会失败。
感谢任何帮助