I have tried to browse it here, but i couldn't find a solution. The problem is,
I have a database, and i want to update a column in the database, such that the updated value is 1 less than the previous.. Basically, in SQL, it UPDATE TABLE TNAME SET VAL=VAL-1 where
How do i do that in Android? I tried doing this
ContentValues args = new ContentValues();
args.put(KEY_ROWID, "KEY_ROWID-1");
db.update(DATABASE_TABLE, args, KEY_ROWID + ">0", null);
But this doesn't work.
I will be thankful if you can help me with this!
Nithin