select count(*) from TableName where 签发项 is null
可求得为空的记录个数,和不为空的记录个数相加就可以了

解决方案 »

  1.   

    select count(*) from TableName where 签发项 is not null
    ---OR---
    select count(签发项 ) from TableName
      

  2.   

    另:我落了一些:
        还要求出镇区为A的记录总数,
    镇区:   总数       签发项    
    A        
    其中镇区为A 的有10条记录,也就是总数为10, 但签发项有4条记录为空,只需填6个便可,
    如何实现呢?
      

  3.   

    select 镇区,count(镇区) where 签发项 is not null group by 镇区