如何在HQL中编写此SQL查询?
select *
from ( select a.*, rownum rnum
from ( select *
from TABLE_1
WHERE STATUS_FLAG = '105'
ORDER BY payment_timestamp desc
)a
where rownum <= 10 )
where rnum >= 0
答案 0 :(得分:0)
甲骨文:
选择FROM TABLE_1 a 在哪里a.STATUS_FLAG ='105' 和0到10之间的ROWNUM 通过PAYMENT_TIMESTAMP DESC订购