Maybe this question has been answered but I cannot find it, so:
In SQLiteDatabase update method,
int android.database.sqlite.SQLiteDatabase.update(String table, ContentValues values, String whereClause, String[] whereArgs)
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?
EDIT
I think I did not explain it correctly.
Suppose this SQL:
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");
And now suppose this code:
ContentValues values = new ContentValues();
values.put("weight", 90.2);
db.update("weight",values, "date = '15/03/2013'",null);
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?