+ -
当前位置:首页 → 问答吧 → 如何统计oracle两个表中的字段值 select count(*),小弟鸟是菜的。。

如何统计oracle两个表中的字段值 select count(*),小弟鸟是菜的。。

时间:2011-09-23

来源:互联网

select count(*) from 冻土
得到74列
select count(*)from 地貌
得到35列
要如何写一条语句求的这两个表的统计是109条?
求高人解解,不要笑我哇,刚学习中~~~

作者: lxy2207   发布时间: 2011-09-23

select (select count(1) from 冻土) + (select count(1)from 地貌) c from dual

作者: lisong770818   发布时间: 2011-09-23

SQL code

select (select count(*) from emp)+(select count(*) from dept) from dual;

作者: xijiaoda_liuhao   发布时间: 2011-09-23

SQL code

select (select count(*) from emp)+(select count(*) from dept) from dual;

作者: xijiaoda_liuhao   发布时间: 2011-09-23

SQL code

select (select count(*) from emp)+(select count(*) from dept) from dual;

作者: xijiaoda_liuhao   发布时间: 2011-09-23

热门下载

更多