oracle-两个 count(1) 相减 的两种方法

来源:互联网 发布:德国足球 知乎 编辑:程序博客网 时间:2024/05/16 07:10
--方法一select(select count(1) from 表1)-(select count(1) from 表2)from dual
--方法二select  a.a-b.b from(select count(1) a from 表1) a,(select count(1) b from 表2) b


原创粉丝点击