Oracle分页sql

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

select s.*
from(
	select t.*,rownum rowindex from tablename t
)s
where rowindex<![CDATA[<]]>=#{lastRow} and rowindex<![CDATA[>]]>=#{firstRow}