SqlServer数据库技巧

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

update dbo.SC_Achievement set DigitalFraction=case when isnumeric(Score)=1 then cast(Score     as numeric(18, 5))  else 0 end

 

posted @ 2018-12-11 17:08  哆啦无梦  阅读(149)  评论(0)    收藏  举报