up previous next contents
Next: PreparedStatements Up: Databases and JDBC Previous: getXXX methods   Contents

Updating the database

Use executeUpdate when using SQL UPDATE commands:
  String update = "UPDATE user SET password='bar' WHERE user='foo'";
  stmt.executeUpdate(update);


Next: PreparedStatements Up: Databases and JDBC Previous: getXXX methods   Contents