The problem with just dropping the wrapping is that the restriction (rownum) is applied before the order by, so which rows you get back is not controlled. Also, pretty sure you cannot do the FOR UPDATE in Oracle in the inner query. Not really sure how Oracle expects users to perform paging queries with locks...
The problem with just dropping the wrapping is that the restriction (rownum) is applied before the order by, so which rows you get back is not controlled. Also, pretty sure you cannot do the FOR UPDATE in Oracle in the inner query. Not really sure how Oracle expects users to perform paging queries with locks...