//---deletes a particular title---
public boolean deleteTitle(String name)
{
return db.delete(DATABASE_TABLE, KEY_NAME + "=" + name, null) > 0;
}
or
public boolean deleteTitle(String name)
{
return db.delete(DATABASE_TABLE, KEY_NAME + "=?", new String[]{name}) > 0;
}
db.delete("tablename","id=? and name=?",new String[]{"1","jack"});
/*Put this in your DAO or in your activity*/
public void delete(int yourvariable){ /*<-----Note: I used Int but you can use what variable you want*/
db.delete("yourtablename","yourcolumntodothewhere=" + yourvariable ,null);
}