title: Update sql database with multiple WHERE clauses in java
body: <p>I have a database entry that I need to update. </p>
  
  <p>This method obviously doesn't work, but it should help explain what Im trying to do.</p>
  
  <pre><code>public void updateEntry(String user, String message, String mentions, String og) {
      ContentValues args = new ContentValues();
      args.put(KEY_MESSAGE, message);
      args.put(KEY_MENTIONS, mentions);
      this.db.update(ENTRY_TABLE, args, ("message = ?", "username = "+user), new String[] {og});
  }
  </code></pre>
  
  <p>I need to update the entry where the "name" column AND the "message" column both match the input values. </p>
  
  <p>The database has multiple entries with the same user, and may have multiple entires with the same message but different user, so multiple where clauses are necessary.</p>
  
  <p>How can I use two (or more) where clauses in an sql query?</p>