回答編集履歴
3
訂正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
FROM (select NUll as dummy) DUAL
|
8
8
|
|
9
|
-
WHERE NOT EXIST(~)
|
9
|
+
WHERE NOT EXISTS(~)
|
10
10
|
|
11
11
|
```
|
12
12
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
FROM (values(Null)) as DUAL(dummy)
|
20
20
|
|
21
|
-
WHERE NOT EXIST(~)
|
21
|
+
WHERE NOT EXISTS(~)
|
22
22
|
|
23
23
|
```
|
24
24
|
|
2
修正&追記
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
SELECT 'NO DATA'
|
6
6
|
|
7
|
-
FROM (select NUll) DUAL
|
7
|
+
FROM (select NUll as dummy) DUAL
|
8
8
|
|
9
9
|
WHERE NOT EXIST(~)
|
10
10
|
|
@@ -21,3 +21,11 @@
|
|
21
21
|
WHERE NOT EXIST(~)
|
22
22
|
|
23
23
|
```
|
24
|
+
|
25
|
+
いっそのこと、DUAL表を作る
|
26
|
+
|
27
|
+
```SQL
|
28
|
+
|
29
|
+
select NUll as dummy into dual
|
30
|
+
|
31
|
+
```
|
1
追記
test
CHANGED
@@ -2,10 +2,22 @@
|
|
2
2
|
|
3
3
|
```SQL
|
4
4
|
|
5
|
-
SELECT
|
5
|
+
SELECT 'NO DATA'
|
6
6
|
|
7
7
|
FROM (select NUll) DUAL
|
8
8
|
|
9
9
|
WHERE NOT EXIST(~)
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
若しくはValuesで
|
14
|
+
|
15
|
+
```
|
16
|
+
|
17
|
+
SELECT 'NO DATA'
|
18
|
+
|
19
|
+
FROM (values(Null)) as DUAL(dummy)
|
20
|
+
|
21
|
+
WHERE NOT EXIST(~)
|
22
|
+
|
23
|
+
```
|