Is there an easy way to update a table in sqlite in android? (like a single line in built method) ? I have a table with few columns and primary is one column. I want to sear
Try this:
public void updateFunction(int id) { String updateStmnt = "UPDATE YOUR_TABLE SET YOUR_COLUMN = " + id; database.execSQL(updateStmnt); }
Hope it will help.