比如下面的代码就是从第500条开始取出100条记录: Query q = session.createQuery("from test oreder by id"); q.setFirstResult(500); q.setMaxResults(100);