Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2008 如何获取数据类型int的列为null的表的列?_Sql Server 2008 - Fatal编程技术网

Sql server 2008 如何获取数据类型int的列为null的表的列?

Sql server 2008 如何获取数据类型int的列为null的表的列?,sql-server-2008,Sql Server 2008,即使我在ReqCon=NULL中有数据,我也没有显示任何行。如果要检查值是否为NULL,必须使用为NULL,因为比较运算符(=,!=)如果其中一个或两个参数均为NULL,则返回UNKNOWN: select * from tblCustomerAdmin where ReqCon=null or ReqCon=0 select * from tblCustomerAdmin where ReqCon is NULL or ReqCon =0 如果要检查值是否为NULL,则必须使用为NU

即使我在
ReqCon
=
NULL
中有数据,我也没有显示任何行。

如果要检查值是否为
NULL
,必须使用
为NULL
,因为比较运算符(
=
!=
)如果其中一个或两个参数均为NULL,则返回
UNKNOWN

select * from tblCustomerAdmin 
where  ReqCon=null or ReqCon=0 
select * from tblCustomerAdmin where ReqCon is NULL or ReqCon =0

如果要检查值是否为
NULL
,则必须使用
为NULL
,因为比较运算符(
=
!=
)返回
未知
,如果其中一个或两个参数都为
NULL

select * from tblCustomerAdmin where ReqCon is NULL or ReqCon =0