不能像在sql中那样 isnull(p,0),而需要使用iif函数。如下例 select name,iif(isnull(count(*)),0,count(*)) from table group by name