• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SQLite No Such Table

__Jon__

Newbie
Aug 16, 2010
15
0
I'm trying to opena database and perform searches of it. It's a prebuilt SQLite DB which I put into assets directory and used the SQLiteOpenHelper class to open it up.

Now I want to perform querys but I keep getting No Such Table errors, and after trying any number of permutations of searches I am at a loss. I don't know what is wrong.
I prefer doing rawQuery since I know a little SQL anyway. This is what I did, after opening the DB:
Code:
SQLiteDatabase MyDb = NewDbHelper.getReadableDatabase();
  String selection = "SELECT Wordlink FROM Questions WHERE Level = 3";
  Cursor c = MyDb.rawQuery(selection,null);

Anyone had similar problems or know what to do?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones