关于MySQL数据库的分页

来源:互联网 发布:linux sem wait 编辑:程序博客网 时间:2024/05/17 02:43

1. 分页倒序 select * from article order by id desc;
分页:    select * from article limit pageNo, pageSize;
总共有多少条记录: "select count(*) from product");
多少页:   pageCount = (rsCount.getInt(1) + pageSize - 1)/pageSize;
 

原创粉丝点击