--方法一
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
--方法一
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