Reputation: 420
Im trying to retrieve data from my database table called details. However when im running the query the exception "no such table" is thrown.
Below is the query.
Cursor c = mDb.rawQuery("SELECT * FROM details", null);
No error is being thrown when values are inserted into the same table.
What have I missed?
Upvotes: 0
Views: 707
Reputation: 126493
Look into your Database
, your table "details"
doesn´t exist or the name is incorrect.
Check if SQLiteDatabase
(mDb) is loading the same Database where you have inserted the data.
Upvotes: 1