检查带有null的值和使用dbnull.value检查值有什么区别 [英] what is the difference between check the value with null and checking the value with dbnull.value
本文介绍了检查带有null的值和使用dbnull.value检查值有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hii,
以下内容之间有什么区别
Hii ,
what is the difference between the folliwing
if(result==null)
{
}
if(result==dbnull.value)
{
}
推荐答案
关键字null
表示无效的引用。类System.DbNull
表示数据库字段中不存在的值。
The keywordnull
represents an invalid reference. The classSystem.DbNull
represents a nonexistent value in a database field.
这篇关于检查带有null的值和使用dbnull.value检查值有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文