首页 › SQLite › andorid column ‘_id’ does not exist错误的解决
songfantasy
发表于 2013-1-13 00:43:28
andorid column ‘_id’ does not exist错误的解决
关于这一部分,必须注意sqlite的主键命名,由于simpleCursorAdapter的方法只识别_id,所以,当你用到sqlite的simpleCursorAdapter时,必须把数据表的主键命名为_id。否则就会出现java.lang.IllegalArgumentException: column '_id' does not exist错误。