在oracle 12c中,我们可以使用fetch first
子句选择表的前n行。
休眠状态下是否有与Oracle 12c的fetch first ...
子句等效的子句?
fetch first
的示例:
select *
from tbl_order t
order by t.orderDate desc
fetch first 1 rows only;
请注意,我不想使用rownum
子句。
我想要HQL
本身的解决方案而不是像setMaxResults()
这样的休眠方法。