码迷,mamicode.com
首页 > 数据库 > 详细

sql - 空值处理

时间:2015-01-08 09:27:40      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:

如,FErrorTimes为Null时,要增加“1”,而“Null + 1”还是等于Null。

使用语句可以写成:
Update  T_Table  set FErrorTimes= ISNull(FErrorTimes,0)+1
where  FName=@name.

 

 
 

sql - 空值处理

标签:

原文地址:http://www.cnblogs.com/listened/p/4209894.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!