如何在执行order时避免结果集关闭错误

时间:2018-05-29 20:35:17

标签: java sql sqlite jdbc

这是我尝试通过jdbc和sqlite

运行的代码段
Statement s = conPlayer.createStatement();

ResultSet rs = s.executeQuery("SELECT id FROM Stats "+ "WHERE pos = " + "'%" + pos + "%'" + " ORDER BY id LIMIT 1 OFFSET 54");


System.out.println(rs.getInt("id"));

0 个答案:

没有答案