android.database.sqlite.SQLiteException: table tb_diary2 has no column named recordPath 解决办法
来源:互联网 发布:mac手机删除导入照片 编辑:程序博客网 时间:2024/05/16 17:18
错误提示:
android.database.sqlite.SQLiteException: table tb_diary2 has no column named recordPath (code 1): , while compiling: insert into tb_diary2
出现背景:
更新了某个表,插入或删除某个列:
如图:我在原来的tb_diary2中增添了一个字段recordPath,对应的实体、Dao类也做了修改,结果在添加时程序报上面那个错。
解决办法:
修改数据库名称。比如说把上图中原来的数据库 name = “diary2.db”改为”diary3.db”。
修改表后插入报错,可能sqlite没有更新该数据库下的表,只好修改数据库名称,新建一个。
1 0
- android.database.sqlite.SQLiteException: table tb_diary2 has no column named recordPath 解决办法
- android.database.sqlite.SQLiteException: table tb_diary2 has no column named recordPath 解决办法
- android.database.sqlite.SQLiteException: table user has no column named se_pass (code 1)
- android.database.sqlite.SQLiteException: table userinfo has no column named signature (code 1): , w
- android.database.sqlite.SQLiteException: table has no column XXX (code 1)问题解决方法
- android.database.sqlite.SQLiteException: no such column
- System.err: android.database.sqlite.SQLiteException: table user has no colum报错
- Caused by: android.database.sqlite.SQLiteException: no such column:
- android.database.sqlite.SQLiteException: no such table错误出现的原因及解决办法
- android.database.sqlite.SQLiteException: no such table出现原因与解决办法
- android.database.sqlite.SQLiteException: no such table解决方法
- greenDao使用中android.database.sqlite.SQLiteException: no such table
- Android报错:数据库相关 android.database.sqlite.SQLiteException: no such column
- Android Studio中使用SQLite问题:android.database.sqlite.SQLiteException: no such table: XXX (code 1)
- android.database.sqlite.SQLiteException: no such column: T.XXX (code 1): , while compiling
- table xxx has no column named xxxx
- android报 android.database.sqlite.SQLiteException: no such table: xxx (code 1): , while compiling
- android.database.sqlite.SQLiteException: no such table: info: , while compiling: insert into info(na
- 数据平台建设随想
- vc error C2664: 不能将参数 2 从“CString”转换为“LPTSTR”解决方法
- 我觉得我不会怎么经常更新.
- listview中的editText无法输入无法聚焦等问题
- java中PriorityQueue优先级队列使用方法
- android.database.sqlite.SQLiteException: table tb_diary2 has no column named recordPath 解决办法
- java vector,list,map,stack,queue
- 简单音频播放器
- XCode快捷键
- 【原创】Unity T4M 中文讲解
- MD5加密应用之.NET与JAVA差异分析
- 第06课 ARM中断
- Android RippleEffect波纹效果,重写ViewGroup
- VisualStudio报错:“找不到路徑...\WindowsApplication.vstemplate 的一部分”的解决方法