首页 > 代码库 > sqlite query

sqlite query

问题:java.lang.IllegalStateException: Process 10789 exceeded cursor quota 100, will kill it

解决方法:

Cursor query = db.query(LwSQLiteOpenHelper.TABLE_NAME, null,LwSQLiteOpenHelper.ACCOUNT + "=?",

query.close();

查询完数据库记得关闭对应的游标否则会报上面的错误

本文出自 “android,cocos2dx” 博客,请务必保留此出处http://xuguohongai.blog.51cto.com/4291348/1554599

sqlite query