赞
踩
上面的做法rownum会乱序 所以还要再外层嵌套查询
SELECT * FROM (SELECT ROWNUM rn ,a.* FROM (SELECT * FROM AD ORDER BY CREATE_TIME DESC ) a) WHERE rn >? AND rn<=?