getWritableDatabase called recursively;bind or column index out of range
2011-08-13 22:37
567 查看
ERROR/AndroidRuntime(4519): Caused by: java.lang.IllegalStateException: getWritableDatabase called recursively
出现这个错误,很大可能是你在继承SQLiteOpenHelper的时候,在onCreate()方法中使用了getWritableDatabase方法,如果要在onCeate中使用SQLiteDatabase的话可以不用getWritableDatabase,直接用onCreate()参数中的SQLiteDatabase就可以了。。
android.database.sqlite.SQLiteException: bind or column index out of range
主要是由于在用query时,选择条件中没有写成这样_id=?(参数用?号取代),如果没有用=?就会出现这问题。
出现这个错误,很大可能是你在继承SQLiteOpenHelper的时候,在onCreate()方法中使用了getWritableDatabase方法,如果要在onCeate中使用SQLiteDatabase的话可以不用getWritableDatabase,直接用onCreate()参数中的SQLiteDatabase就可以了。。
android.database.sqlite.SQLiteException: bind or column index out of range
主要是由于在用query时,选择条件中没有写成这样_id=?(参数用?号取代),如果没有用=?就会出现这问题。
相关文章推荐
- android.database.sqlite.SQLiteException: bind or column index out of range: handle 0x580608
- SQLiteException: bind or column index out of range
- Android 模糊搜索rawquery bind or column index out of range: handle 0x2fb180 报错
- SQLiteException: bind or column index out of range
- Android 模糊搜索rawquery bind or column index out of range: handle 0x2fb180 报错
- FAQ(52):java.sql.SQLException: Column Index out of range, 0 > 13. at com.mysql.jdbc.ResultSet.getInt
- java.sql.SQLException:Column Index out of range,0<1
- Range or index out of bounds
- java.sql.SQLException: Column Index out of range, 2 > 1.
- java.sql.SQLException: Column Index out of range, 2 > 1.
- SQLite: Cannot bind argument at index 1 because the index is out of range. The statement has 0 param
- mysql -Column Index out of range
- getWritableDatabase called recursively
- SQLite报错:getWritableDatabase called recursively的解决
- java.sql.SQLException:Column Index out of range,0<1
- [_UICascadingTextStorage attributesAtIndex:effectiveRange:]: Range or index out of bounds
- 第二篇:_UICascadingTextStorage attributesAtIndex:effectiveRange:]: Range or index out of bounds
- java.sql.SQLException:Column Index out of range,0<1
- **Python错误记录:IndexError: list index out of range**
- Hibernate String index out of range 0