查数据库 android.database.sqlite.SQLiteException: no such column
报这个异常,如果字段的确是有的,内容也有,
看一下字段的类型,如果是TEXT类型的(SQLite)就要给字符串前后加上引号。
如 SELECT * FROM offlineChatMsg WHERE name = jimmy ORDER BY date DESC
修改为 SELECT * FROM offlineChatMsg WHERE name = "jimmy " ORDER BY date DESC