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 ended up this problem by changing parameter to name. Its weird but I still don't know why it was not working.
I was getting bank id like 0,1,2,3,4 maybe it is not allowed in SQLite or internally affecting it but still I am not sure.
cursor = this.db.rawQuery("select * from " + BanksTable.NAME + " where " + BanksTable.COL_NAME + "='" + bankName + "'" , null);