JDBC 滚动和分页

publi++c class ScrollTest {

/**

* @param args

* @throws SQLExcepti++on

*/

public static void main(String[] args) throws SQLException {数据库设计

scroll();

}

sta数据库系统概论第五版课后答案tic vosqlserver内存最佳配置id scroll() throws SQLException {

Connection conn = null;

Statement st = null;

ResultSet rs = null;

try {

// 2.建立连接

conn = JdbcUtils.getConnection();

st = conn.createStatesqlserver怎么读ment(ResultSet.TYPE_SCROLL_SEN盛气凌人的意思SITIVE,

Re申请了营业执照可以不经营吗sultSet.CONCUR_READ_ONLY);

rs = st

.executeQuery("select id, name, money, birthday from user limit 150, 10")数据库管理系统;

while (rs.next()) {

System.out.println(rs.getObject("id") + "\t数据库原理及应用"

+ rs.getObject("name") + "\t"

+ rs.getObject("birthday") + "\t"

+ rs.getObject("money"));

}

Ssqlserver数据库ystem.out.println("-数据库系统-----------");

rs.absolutjavascript是干什么的e(150);

int i = 0;

while (rs.next() && i < 10) {

i++;

S帅气撩人高冷动漫男头ysjavascripttem.out.printlsqlserver和mysql区别n(rs.getObject("id") + "\t"

+ rs.getObject盛气凌人的意思("name") + "\t"

+ rs.getObject("birtjavascripthday") + "\t"

+ rs.getObject("数据库money"));

}

// if (rs.previous())

/sql数据库/ System.out.println(rsi++和++i的区别举例.javascriptgetObject("id") + "\t"

// + rs.getObject("name") + "\t"

// + rs.getObject("birthday") + "\t"

// + rsqlserver2008安装步骤教程s.getObject("money"));

} finally {

JdbcUtils.free(rs, st, conn);

}

}

}