测试数据如下:tb:
a b c
1 2 x1 3 null1 4 1 5 x语句
select * from tb where c<>'x' 结果为:a b c
1 4
为什么null的不会被取出来数据库为sql server2000还有,请将以下count(1)和count(*)的区别谢谢
a b c
1 2 x1 3 null1 4 1 5 x语句
select * from tb where c<>'x' 结果为:a b c
1 4
为什么null的不会被取出来数据库为sql server2000还有,请将以下count(1)和count(*)的区别谢谢
一般理解的话是不等于某个值的话是包括null的,是不是null值只能用is去比较,不能用=去比较?
count(name)不会