mardi 28 juillet 2015

Inputting Single Value into SQLiteDatabase

I was just wondering if it's possible to just input/update a single value into an SQLiteDatabase (as opposed to an entire row).

The SQLiteDatabase API on the Android developer site makes it sound like you can only insert one row at a time (which erases previous information).

An alternative I've been thinking of is to copy the contents of the entire row into an array, alter a value in the array, and then insert the values of the array as an update row in the SQL Database. Does anyone have a more efficient and less roundabout solution?

Aucun commentaire:

Enregistrer un commentaire