SqlServer数据库技巧

1、数值转换失败提供默认值

update dbo.SC_Achievement set DigitalFraction=case when isnumeric(Score)=1 then cast(Score     as numeric(18, 5))  else 0 end
原文地址:https://www.cnblogs.com/shya/p/10103445.html