select * from (select t.*,rownum as rnum from tablename where rownum<=?) where rnum=?

就查找出第?行的数据了

直接查找不行,要排序的,不排序的话没意义。