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