Android sqlite missing column

前端 未结 2 1556
青春惊慌失措
青春惊慌失措 2021-01-16 20:10

My SQLite database is missing a column which I know exists. I will not be able to pull the database from the Android Emulator, because there is no way to populate it with th

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-16 20:43

    the answer was that the last column did not have a space in the declaration

    + KEY_QUANTITY + " TEXT," + KEY_CHECKEDOUT + "INTEGER" + ");";

    should have been

    + KEY_QUANTITY + " TEXT," + KEY_CHECKEDOUT + " INTEGER" + ");";

    sigh

提交回复
热议问题