回答編集履歴
1
サブクエリ内で、limitは使えないので修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
②のSQL
|
10
10
|
|
11
|
-
select * from test where id not in (
|
11
|
+
select * from test where id not in ("1のSQLで取得したidをカンマ区切りで指定") order by accesscount desc limit 20
|
12
12
|
|
13
13
|
|
14
14
|
|