回答編集履歴
3
修正
answer
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
WHERE id = 176
|
11
11
|
or (
|
12
12
|
not exists(select 1 from cp_plan where id = 176)
|
13
|
-
and id
|
13
|
+
and id = (select mid from (SELECT max(id) as mid from cp_plan) as tmp)
|
14
14
|
)
|
15
15
|
```
|
2
修正
answer
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
WHERE id = 176
|
11
11
|
or (
|
12
12
|
not exists(select 1 from cp_plan where id = 176)
|
13
|
-
and id
|
13
|
+
and id in (select mid from (SELECT max(id) as mid from cp_plan) as tmp)
|
14
14
|
)
|
15
15
|
```
|
1
修正
answer
CHANGED
@@ -10,6 +10,6 @@
|
|
10
10
|
WHERE id = 176
|
11
11
|
or (
|
12
12
|
not exists(select 1 from cp_plan where id = 176)
|
13
|
-
and id=(SELECT max(id) from cp_plan)
|
13
|
+
and id=(select mid from (SELECT max(id) as mid from cp_plan) as tmp)
|
14
14
|
)
|
15
15
|
```
|