Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void insertKey(String id, String key)
- {
- Connection connection = getConnection();
- try
- {
- String insertSQL = "insert into privacy(id, key) values (?,?)";
- PreparedStatement psmt = connection.prepareStatement(insertSQL);
- psmt.setString(0, x);
- psmt.setString(1, x);
- int keyCount = psmt.executeUpdate();
- System.out.println("Executed update - Key Count: " + keyCount);
- }
- catch(SQLException e)
- {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement