回答編集履歴
1
追記
answer
CHANGED
@@ -2,4 +2,20 @@
|
|
2
2
|
select a.count1 + b.count2 as counts from
|
3
3
|
(select count(*) as count1 from hogeMst) a
|
4
4
|
, (select count(*) as count2 from hugeMst) b ;
|
5
|
-
```
|
5
|
+
```
|
6
|
+
追記
|
7
|
+
count って関数名だから、別名にしない方が良いです。
|
8
|
+
```SQL
|
9
|
+
SQL> column counts format 999,990
|
10
|
+
SQL> select sum(counts) as counts
|
11
|
+
2 from(
|
12
|
+
3 select count(*) as counts from user_tables
|
13
|
+
4 union all
|
14
|
+
5 select count(*) as counts from user_objects
|
15
|
+
6 ) ;
|
16
|
+
|
17
|
+
COUNTS
|
18
|
+
--------
|
19
|
+
53,015
|
20
|
+
```
|
21
|
+
Oracle18C
|