SQLiteLog (1) no such Column:
来源:互联网 发布:手机秘密录音软件 编辑:程序博客网 时间:2024/06/01 20:42
今天在进入sqlite数据库查询的时候出现了这个问题,SQLiteLog (1) no such Column:BGZ
搜索得知这是因为数据库中没有这一列,我的sql语句为"select id from table where id = "+id(后面的这个id为方法参数),目的是为了得知数据库表中是否存在这个id的数据,“BGZ”是我报错时候传入的参数,它并不是我数据库中的列名字段,后来通过和同事讨论发现,原来我的id是TEXT类型,并不是通常所用的Integer类型,sql语句应该改为"select id from table where id= '"+id+"'";这样才能获取数据库表中的id数据,否则则出现类似没有BGZ列名的错误,thanks~
- SQLiteLog (1) no such Column:
- SQLiteLog (1) no such Column:
- SQLiteLog (1) no such Column
- SQLiteLog : (1) no such column: playTime
- (1) no such column
- SQliteDatabase 中sql语句引用字符串时的注意点,要把单引号放进去,E/SQLiteLog﹕ (1) no such column:
- 【调试】将JSON数据存入数据库时提示E/SQLiteLog(16899): (1) no such table
- Error: no such column
- Android搜索错误no such column
- android.database.sqlite.SQLiteException: no such column
- android.database.sqlite.SQLiteException: no such column: T.XXX (code 1): , while compiling
- flask 学习错误总结 (sqlite3.OperationalError) no such table / no such column
- Caused by: android.database.sqlite.SQLiteException: no such column:
- 关于“SqliteException: SQLite error no such column: ”错误
- ios FMDB 使用中报错 no such column : XXXX
- no such column:SQL语句包含数据库表中不存在的列名
- 安卓数据库:no such column-定位SQLite数据库位置-查看SQLite
- Android报错:数据库相关 android.database.sqlite.SQLiteException: no such column
- Android 文件选择的实现代码
- schedule mm_struct and CPU register
- Android四大组件之Content Provider
- Android取消EditText自动获取焦点默认行为
- c语言/iso/javaScript书籍推荐
- SQLiteLog (1) no such Column:
- POJ 2289 - Jamie's Contact Groups 二分+二分图的多重匹配
- 静态页面(html)直接调用action
- listview layou_width=wrap_content 占满屏
- 模板类参数中嵌套模板类问题
- 应用程序命名规则
- 分享一个CSS3介绍网址
- jsp加载activex
- oracle学习笔记(7)_伪列