select distinct "column" from table;
输出:
column 1 0.0 2 [null] 3 1.0
但是当我尝试计算空值时
select count("column") from train where "column" is NULL;
给出输出0(零)
您能建议哪里出问题了吗?
用途count(*):
count(*)
select count(*) from train where "column" is NULL;
count()与任何其他说法计数非NULL值,所以有没有,如果"column"是NULL。
count()
"column"
NULL