Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Sqlite查询绑定或列超出范围_Android_Sqlite - Fatal编程技术网

Android Sqlite查询绑定或列超出范围

Android Sqlite查询绑定或列超出范围,android,sqlite,Android,Sqlite,我从下面的查询中得到这个logcat输出。我知道所有的列都在我试图访问的表中。这个错误意味着什么 11-23 23:33:48.207: ERROR/AndroidRuntime(16941): Caused by: android.database.sqlite.SQLiteException: bind or column index out of range: handle 0x2cc688 查询: 查询中的?周围不需要引号。尝试使用: Cursor value=checkDB.quer

我从下面的查询中得到这个logcat输出。我知道所有的列都在我试图访问的表中。这个错误意味着什么

11-23 23:33:48.207: ERROR/AndroidRuntime(16941): Caused by: android.database.sqlite.SQLiteException: bind or column index out of range: handle 0x2cc688
查询:
查询中的
周围不需要引号。

尝试使用:

Cursor value=checkDB.query(table,new String[]{"*"},"open=1 and country="'"+countryID+"'",null,null,null,null);
Cursor value=checkDB.query(table,new String[]{"*"},"open=1 and country="'"+countryID+"'",null,null,null,null);