一. MySQL 数据库 分页查询MySQL数据库实现分页比较简单,提供了 LIMIT函数.一般只需要直接写到sql语句后面就行了.LIMIT子 句可以用来限制由SELECT语句返回过来的数据数量,它有一个或两个参数,如果给出两个参数, 第一个参数指定返回的第一行在所有数据中的位置,从0开始(注意不是1),第二个参数指定最多返回行数.例如:select * from table WHERE … LIMIT 10; #返回前10行select * from table WHERE … LIMIT
public class PageList<T> { private int totalpage; //总页数 private int totalcount; //总记录数 private int currentpage; //当前页 private int pagesize; //每页的数量 private int firstpage; //第一页 private int lastpage; //最后一页 private int prepage; //上一页 private int next