select count(字段名)
from 表名
where 字段名  is null

解决方案 »

  1.   

    例:
    select Count(*) from EvaluatCostc where Sum_Mater_Fee is NULL 
    在SQL2000中已調試過了
      

  2.   

    select count(*)
    from theTable
    where thefield is NULL
      

  3.   

    不加where条件利用函数能不能实现?
      

  4.   

    select count(字段名)
    from 表名
    where 字段名 is null
      

  5.   

    不加where条件利用函数能不能实现?不能。
      

  6.   

    select count(*) from tablename where fieldname is null
      

  7.   

    UP:
    select cout(*) as 记录数 from yourtable 
      where yourfield is null
      

  8.   

    若你不想用where, 你便要用
    select MyField, count(*) from MyTable
    group by MyField结果会是
    MyField  Count
              xx    <----  为Null的个数
    a         xx
    b         xx