分页查询 步骤
1,定义一个sql
2,用pstt=conn.preparedstatement(sql)
3,通过ppst.setobject 方法传递参数
for (int i = 0; i < objs.length; i++) {
pstt.setObject(i + 1, objs[i]);
}
4,通过rs = db.query(sql);执行sql语句
posted on 2015-10-21 22:00 kebizhanmushi 阅读(228) 评论(0) 编辑 收藏 举报