Oracle(00):sum count null 结果

select sum(aa),sum(bb),count(bb),count(*),sum(aa+bb),sum(aa)+sum(bb) from

(select 1 aa,null bb from dual union all select 2 aa,1 bb from dual) tt

结果为:

 

SUM(AA)SUM(BB)COUNT(BB)COUNT(*)SUM(AA+BB)SUM(AA)+SUM(BB)
3 1 1 2 3 4

posted on 2011-12-16 09:47  springsnow  阅读(373)  评论(0编辑  收藏  举报

导航