startPage=pageSize*(pageNumber-1)+1 endPage=startPage+pageSize SQL语句 select a.*from(select rownum num,t.*from 表名 t where 某列=某值 order by id asc)a where a.num>=startPage and a.num<endPagedb2分页 int startPage=1/起始...
数据库是db2 9.7 hibernate4 点击分页上一页或首页没问题,但点击下一页或最后一页就报错。Hibernate:select tsuserstb0_.USERID as USERID1_1_,tsuserstb0_.CREASTAF as CREASTAF2_1_,tsuserstb0_.CREATIME as CREATIME3_1_,tsuserstb0_....