当前位置:首页 > 数据库 > SQlite

关于SimpleCursorAdapter在sqlite数据库中取数据报错 : java.lang.IllegalArgumentException: column '_id' does not exist

  _id列不存在 需要创建一个 id列

关于SimpleCursorAdapter在sqlite数据库中取数据报错 : java.lang.IllegalArgumentException: column '_id' does not exist - 文章图片        

因为SQLlite数据库 关于SimpleCursorAdapter在sqlite数据库中取数据报错 : java.lang.IllegalArgumentException: column '_id' does not exist - 文章图片

的onCreate方法是在数据库不存在的时候才调用所以我们需要清除一下这个app 的数据 将数据清空

 

关于SimpleCursorAdapter在sqlite数据库中取数据报错 : java.lang.IllegalArgumentException: column '_id' does not exist

标签:

本文系统来源:http://www.cnblogs.com/langjitianya/p/5854590.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!