SQLiteException: no such table

后端 未结 9 596
礼貌的吻别
礼貌的吻别 2021-01-06 08:26

I am using my own SQLite3 database as opposed to creating a new one each time my app runs, as I have a few tables with static data that I am trying to display. I created my

相关标签:
9条回答
  • 2021-01-06 08:58

    Just happened to me. I don't exactly know why but changing the DB_VERSION attribute to a bigger number made it work. The thing is: each time i'm changing the fields of the DB (attributes of the SQLiteDB class), i need to change that number.

    0 讨论(0)
  • 2021-01-06 08:59

    hapend to me once change your DATABASE_VERSION

    if your DATABASE_VERSION =1 it will see just three table if your DATABASE_VERSION = 2 it will see just more table but i really didn't know how many

    good luck

    0 讨论(0)
  • 2021-01-06 09:04

    Whenever you create new table in an existing database the table doesnt create because the OnCreate function of database handler will not be called everytime but only if required(like database not initiated). If that is not the case your newly created table actually hasnt created. Clear the data to force the db to instantiate itself.

    0 讨论(0)
提交回复
热议问题