I want to delete for example the first 3 (oldest) that have the color1 as blue.
Example data set:
_id | name | surname | color1 | color2
1 | mark | jacobs | blue | green
2 | tony | hilo | black | red
13 | lisa | xyz | blue | green
4 | andre | qwerty | blue | green
9 | laura | abc | black | red
14 | kerr | jacobs | blue | green
I want to use execsql rather than db.delete..
which method is preferable ?
and what my code should be like ?
I will be using this inside eclipse in an android app.
1 Answer