Android SQLite delete multiple rows -
i want delete rows in table specific id (not primary key). have tested 2 different methods, remove first row finds specific id:
db.delete(calendartable.table_name, "repeat_group="+repeatgroup, null);
and
db.delete(calendartable.table_name, "repeat_group=?", new string[]{integer.tostring(repeatgroup)});
none of these methods works, how can remove rows in table specific id? in advance!
update: lol, method above did work! me stupid 1 called own method delete() instead of deleterepeatgroup(), guess i'm tired! anyways, thank guys taking time.
if else fails, can try following. rows in table id trying delete , save rowid's in array. iterate on array , delete each row.
i hope works expected
Comments
Post a Comment