Slide 47
Slide 47 text
Address “ORA-00907"
• ORA—00907
• UPDATE "POSTS" SET body = 'bulk update!' WHERE "POSTS"."ID" IN (SELECT
"POSTS"."ID" FROM "POSTS" WHERE "POSTS"."AUTHOR_ID" = :a1 ORDER BY
posts.id) [["author_id", 1]]
• No ORA-00907 error
• DELETE FROM "POSTS" WHERE "POSTS"."ID" IN (SELECT "POSTS"."ID" FROM
"POSTS" WHERE "POSTS"."AUTHOR_ID" = :a1 ORDER BY "POSTS"."ID" ASC
FETCH FIRST :a2 ROWS ONLY) [["author_id", 1], ["LIMIT", 1]]