回答編集履歴
2
追記
test
CHANGED
@@ -9,3 +9,17 @@
|
|
9
9
|
)
|
10
10
|
|
11
11
|
```
|
12
|
+
|
13
|
+
件数=要素数 ではなく、要素数での判断なら、
|
14
|
+
|
15
|
+
```SQL
|
16
|
+
|
17
|
+
delete from M_T
|
18
|
+
|
19
|
+
where ID3 in (
|
20
|
+
|
21
|
+
select ID3 from M_T group by ID3 having count(DISTINCT ID2) > 1
|
22
|
+
|
23
|
+
)
|
24
|
+
|
25
|
+
```
|
1
推敲
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
```SQL
|
2
2
|
|
3
|
-
delete from M_T
|
3
|
+
delete from M_T
|
4
4
|
|
5
5
|
where ID3 in (
|
6
6
|
|