Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static PreparedStatement pstmt;
- ...
- if (pstmt == null) {
- pstmt = conn.prepareStatement ("select pid from people where pid = ?");
- }
- for (int i = 0; i < 10000; i++) {
- pstmt.setInt(1, i);
- pstmt.execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement