回答編集履歴
1
追記
test
CHANGED
@@ -7,3 +7,35 @@
|
|
7
7
|
, (select count(*) as count2 from hugeMst) b ;
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
追記
|
12
|
+
|
13
|
+
count って関数名だから、別名にしない方が良いです。
|
14
|
+
|
15
|
+
```SQL
|
16
|
+
|
17
|
+
SQL> column counts format 999,990
|
18
|
+
|
19
|
+
SQL> select sum(counts) as counts
|
20
|
+
|
21
|
+
2 from(
|
22
|
+
|
23
|
+
3 select count(*) as counts from user_tables
|
24
|
+
|
25
|
+
4 union all
|
26
|
+
|
27
|
+
5 select count(*) as counts from user_objects
|
28
|
+
|
29
|
+
6 ) ;
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
COUNTS
|
34
|
+
|
35
|
+
--------
|
36
|
+
|
37
|
+
53,015
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
Oracle18C
|