Advertisement
Guest User

Untitled

a guest
Sep 11th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. PreparedStatement pStmt = connection.prepareStatement(
  2.                     "update links set processed = ? where href = ?"
  3.                    );
  4.  
  5.                     pStmt.setBoolean(1, true);
  6.                     pStmt.setString(2, link);
  7.  
  8.  
  9.                     pStmt.execute();
  10.                     connection.commit();
  11.  
  12.                     if(pStmt != null) {pStmt.close();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement