在ORACLE大数据量下的分页解决方法。一般用截取ID 方法,还有是三层 嵌套方法
答:一种分页方法
<%
int i=1;
int numPages=14;
String pages = request.getParameter(“page”) ;
int currentPage = 1;
currentPage = (pages==null)?(1):{Integer.parseInt(pages)}
sql = “select count(*) from tables”;
ResultSet rs = DBLink.executeQuery(sql) ;
第36 页共59 页
while(rs.next()) i = rs.getInt(1) ;
int intPageCount=1;
intPageCount=(i%numPages==0)?(i/numPages):(i/numPages+1);
int nextPage ;
int upPage;
nextPage = currentPage+1;
if (nextPage>=intPageCount) nextPage=intPageCount;
upPage = currentPage-1;
if (upPage/<%=intPageCount%>页
第一页
”>上一页
<%
for(int j=1;j
”>[<%=j%>]
<%
}else{
out.println(j);
}
}
%>
”>下一页
”>最后页
<%
int i=1;
int numPages=14;
String pages = request.getParameter(“page”) ;
int currentPage = 1;
currentPage = (pages==null)?(1):{Integer.parseInt(pages)}
sql = “select count(*) from tables”;
ResultSet rs = DBLink.executeQuery(sql) ;
第36 页共59 页
while(rs.next()) i = rs.getInt(1) ;
int intPageCount=1;
intPageCount=(i%numPages==0)?(i/numPages):(i/numPages+1);
int nextPage ;
int upPage;
nextPage = currentPage+1;
if (nextPage>=intPageCount) nextPage=intPageCount;
upPage = currentPage-1;
if (upPage/<%=intPageCount%>页
第一页
”>上一页
<%
for(int j=1;j
”>[<%=j%>]
<%
}else{
out.println(j);
}
}
%>
”>下一页
”>最后页
【在ORACLE大数据量下的分页解决方法。一般用截取ID 方法,还有是三层 嵌套方法】相关文章
1. 在ORACLE大数据量下的分页解决方法。一般用截取ID 方法,还有是三层 嵌套方法
2. 说一下mysql, oracle等常见数据库的分页实现方案
4. 我们没有写servlet的构造方法,那么容器是怎么创建servlet的实例呢
5. Oracle面试(DBA For oracle数据库技术)
本文来源:https://www.mianshiwenti.com/a13366.html
进入下载页面
上一篇:Oracle面试题库-DBA
下一篇:SQL Server数据库笔试题和答案
﹝在ORACLE大数据量下的分页解决方法。一般用截取ID 方法,还有是三层 嵌套方法﹞相关内容
- 劳动纠纷的解决方式
- 劳动合同纠纷的解决方式有哪些?
- 解决方案设计综合面试题
- How to detect and cleanup pending transactions in Oracle
- C#实现对任一张表的数据进行增,删,改,查要求,运用Webservice,体现出三层架构
- C#中有没有静态构造函数,如果有是做什么用的?
- 介绍一下嵌套表
- 如果重写了对象的equals()方法,需要考虑什么
- 编写一个类体现构造,公有,私有方法,静态,私有变量
- Ruby中的保护方法和私有方法与一般面向对象程序设计语言的一样吗