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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -