PreparedStatement pst = con.prepareStatement("select * from testTable limit ?,? ;")
pst.setInt(1, 100);
pst.setInt(2, 50);有人试过吗?这样作没问题吧。