我有两个表A和B。我在上面执行左连接并工作正常。我试图按表A限制行数,所以对于我来说,当我要求5行时,我希望表A中的5行与表B中的5行连接。就像:
select * from (select * from A where rownum < ?) a left outer join B b on a.id=
criteria.list().length; // let's say there's a million records in this table当对我的Oracle运行类似于上面代码示例的查询时,我看到正在生成... ROWNUM < 2 SQL。但是,当我查看一个时,我不明白ROWNUM是在检索记录之