当前位置: 技术问答>java相关
如何用ResultSet分页,在线等待!
来源: 互联网 发布时间:2015-08-22
本文导语: 得到一个ResultSet,如何分页? | 三个方法: 1。用next()方法, 选从50-100行 int CurrentRow = 1; int MinRow = 50; int MaxRow = 100; while(rs.next()) { if (CurrentRow 50...
得到一个ResultSet,如何分页?
|
三个方法:
1。用next()方法,
选从50-100行
int CurrentRow = 1;
int MinRow = 50;
int MaxRow = 100;
while(rs.next())
{
if (CurrentRow 50 and ss.r 0 AND ROWNUM
1。用next()方法,
选从50-100行
int CurrentRow = 1;
int MinRow = 50;
int MaxRow = 100;
while(rs.next())
{
if (CurrentRow 50 and ss.r 0 AND ROWNUM