SQLiteDatabase - How to use where clause?

前端 未结 7 758
情歌与酒
情歌与酒 2021-02-09 02:57
public Cursor fetchTimetable() {
    return mDb.query(DATABASE_TABLE_TIMETABLE, new String[] {TIMETABLE_ROWID,    TIMETABLE_MODULECODE, TIMETABLE_MODULENAME, TIMETABLE_R         


        
7条回答
  •  野性不改
    2021-02-09 03:27

    If you're checking against a string value you'll want to wrap the string in quotes like below:

    dbHelper.COL_EMAIL +"='"+givenEmail+"'", 
    

提交回复
热议问题