问题描述
我想计算单列中空值的数量。
与:
select count(1)
from usedcars3
where model is NULL
但是当我运行时,我设法在 sql 的单个列中获得了空值的计数:
select count(1)
from usedcars3
where model is null;
在蜂巢中,
结果它给了我 0。
我四处搜索,但没有找到任何关于原因的信息。
任何帮助/见解将不胜感激。
解决方法
select count(*) from usedcars3 where model is null;