I want to get a specific row by id in android sqlite and have written the following code, but it does not return any records. I have written a getAllRecords() m
I solved this issue by adding "autoincrement" property to id, while creating the table
db.execSQL("CREATE TABLE IF NOT EXISTS " + BanksTable.NAME +" ( " +BanksTable.COL_ID + "
integer PRIMARY KEY **autoincrement**, "+ BanksTable.COL_NAME + " varchar, " +
BanksTable.COL_IMAGE_URL + " varchar," + BanksTable.COL_IMAGE + " blob);");