SELECT orderid
FROM (SELECT orderid, rownum r
FROM (SELECT orderid
FROM myorders
WHERE ordertype = 'E'
AND orderstatus = 'A') a
WHERE rownum < 86)
WHERE r > 84
以更清晰的方式重写 ABOVE sql 语句的最佳方法是什么...
我尝试了以下方法,但没有得到任何结果。
select orderid
from myorders
where rownum between 84 and 86