Android - SQLite - no such column error (greenDAO)

前端 未结 2 1882
臣服心动
臣服心动 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.

提交回复
热议问题