android.database.sqlite.SQLiteException: table has no column XXX (code 1)问题解决方法

来源:互联网 发布:sql server2008r2下载 编辑:程序博客网 时间:2024/06/05 13:25
今天在用到SQLite数据库的时候,老是出现这个出现这个错误:

android.database.sqlite.SQLiteException: table has no column named (code 1),找了半天也没找到解决方法。是什么原因造成这个错误呢:

其实是修改了在创建表的内容,你只要升级数据库版本或者卸载当前的应用,然后在运行加载,就不会报这个错误了。
0 0
原创粉丝点击