12 个解决方案
#1
select count(字段名)
from 表名
where 字段名 is null
from 表名
where 字段名 is null
#2
例:
select Count(*) from EvaluatCostc where Sum_Mater_Fee is NULL
在SQL2000中已調試過了
select Count(*) from EvaluatCostc where Sum_Mater_Fee is NULL
在SQL2000中已調試過了
#3
楼上说了
#4
select count(*)
from theTable
where thefield is NULL
from theTable
where thefield is NULL
#5
楼上说的对
#6
不加where条件利用函数能不能实现?
#7
select count(字段名)
from 表名
where 字段名 is null
from 表名
where 字段名 is null
#8
mission impossible ^_*
#9
不加where条件利用函数能不能实现?
不能。
不能。
#10
select count(*) from tablename where fieldname is null
#11
UP:
select cout(*) as 记录数 from yourtable
where yourfield is null
select cout(*) as 记录数 from yourtable
where yourfield is null
#12
若你不想用where, 你便要用
select MyField, count(*) from MyTable
group by MyField
结果会是
MyField Count
xx <---- 为Null的个数
a xx
b xx
select MyField, count(*) from MyTable
group by MyField
结果会是
MyField Count
xx <---- 为Null的个数
a xx
b xx
#1
select count(字段名)
from 表名
where 字段名 is null
from 表名
where 字段名 is null
#2
例:
select Count(*) from EvaluatCostc where Sum_Mater_Fee is NULL
在SQL2000中已調試過了
select Count(*) from EvaluatCostc where Sum_Mater_Fee is NULL
在SQL2000中已調試過了
#3
楼上说了
#4
select count(*)
from theTable
where thefield is NULL
from theTable
where thefield is NULL
#5
楼上说的对
#6
不加where条件利用函数能不能实现?
#7
select count(字段名)
from 表名
where 字段名 is null
from 表名
where 字段名 is null
#8
mission impossible ^_*
#9
不加where条件利用函数能不能实现?
不能。
不能。
#10
select count(*) from tablename where fieldname is null
#11
UP:
select cout(*) as 记录数 from yourtable
where yourfield is null
select cout(*) as 记录数 from yourtable
where yourfield is null
#12
若你不想用where, 你便要用
select MyField, count(*) from MyTable
group by MyField
结果会是
MyField Count
xx <---- 为Null的个数
a xx
b xx
select MyField, count(*) from MyTable
group by MyField
结果会是
MyField Count
xx <---- 为Null的个数
a xx
b xx