查询语句:select count(*) from Table t where t.c1='1' group by t.c1,t.c2
没有满足的条件记录就是null
要返回0需要转换
select nvl(count(*),0) from table
要返回0需要转换
select nvl(count(*),0) from table
温馨提示:答案为网友推荐,仅供参考
查询语句:select count(*) from Table t where t.c1='1' group by t.c1,t.c2
本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网