I need to update only the first row of a specific sql query command
my code is:
SQLiteDatabase db = this.getWritableDatabase();
String strSQL = "UPDATE table SET column = something WHERE name = john AND age = 10";
db.execSQL(strSQL);
I have like 5 results with the same criteria of name=john and age of 10
this works to update the last item however I want it to update the first row result only of the WHERE clause. how can this be possible?