MySql很贴心,有个限制范围查询的limit函数,用起来也很方便,SQL不用嵌套.如下: select id,name,age,cdate as ctime from emp order by id limit #{start},#{size} 老旧的Oracle用rownum也可以实现类似的功能,只是需要嵌套SQL,用起来不方便,具体如下: select * from (select rownum no,id,name,age,createdtime as ctime from tb01 o