title: Android SQLite database update method
body: <p>Maybe this question has been answered but I cannot find it, so:</p>
  
  <p>In SQLiteDatabase update method,</p>
  
  <pre><code>int android.database.sqlite.SQLiteDatabase.update(String table, ContentValues values, String whereClause, String[] whereArgs)
  </code></pre>
  
  <p>What will happen if the WHERE clause does not exists?. I mean does not return any row,
  it will perform a normal insert, or do nothing?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I think I did not explain it correctly.</p>
  
  <p>Suppose this SQL:</p>
  
  <pre><code>CREATE TABLE weight (weight REAL, date TEXT);
  
  INSERT INTO weight VALUES (78.5,"10/03/2013");
  INSERT INTO weight VALUES (68.5,"09/03/2013");
  INSERT INTO weight VALUES (79.5,"08/03/2013");
  </code></pre>
  
  <p>And now suppose this code:</p>
  
  <pre><code>ContentValues values = new ContentValues();
  values.put("weight", 90.2);
  db.update("weight",values, "date = '15/03/2013'",null);
  </code></pre>
  
  <p>NOTICE that there is no row with date = '15/03/2013' so, what happen in that case (that was what I wanted to mean) it will insert or do nothing?</p>