StringBuffer pagingSelect = newStringBuffer();
pagingSelectappend(select * from ( select row_* rownum rownum_ from ( );
pagingSelectappend(sql);
pagingSelectappend( ) row_ where rownum <= + endRow + ) where rownum_ > + startRow);
startRow 是记录开始处
endRow 是记录结束处
举例来说
从第条到第条
select * from (
select row_* rownum rownum_from (
select person_id chn_name chn_firstname_py from t_pbase_info
) row_ where rownum <=
) where rownum_ >=