Android - SQLite - no such column error (greenDAO)

前端 未结 2 1878
臣服心动
臣服心动 2021-01-28 08:27

I created my table structure with greenDAO and when updating the following table, I\'m getting the follwing error:

android.database.sqlite.SQLiteException: no su         


        
相关标签:
2条回答
  • 2021-01-28 09:10

    When you update any fields, this updates don't refresh in the actual DB. A solution that worked for me, is delete all tables in the DB and then create all tables again. In my case, my database was empty.

    See the next link: How to clean/delete greenDao database

    Other option is do ALTER TABLE on existing database.

    0 讨论(0)
  • 2021-01-28 09:10

    I just encountered the same problem,you can try this : check the table which is a new table or a old table ,because we always create table with "if not exists". PS: 1.I am from China,my English is poor , Pray you can understand my words. 2.the answer is for someone who will meet the same question after me.

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