@gmail SQLite错误Android电子邮件ID密钥

时间:2014-04-04 18:06:21

标签: android sql

这是我的代码部分:

String selectQuery = "SELECT  * FROM " + TABLE_CONV
                + " WHERE " + KEY_EMAILID + " = " + user_emailid;

尝试使用时查询:

Cursor cursor = db.rawQuery(selectQuery, null);

我得到了:

  

@gmail

的SQLite错误代码1

1 个答案:

答案 0 :(得分:0)

尝试这样..附加'。它可能会解决您的问题

String selectQuery = "SELECT  * FROM " + TABLE_CONV
            + " WHERE " + KEY_EMAILID + " = '" + user_emailid +"'";