SQLiteDatabase - How to use where clause?

前端 未结 7 765
情歌与酒
情歌与酒 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:29

    The simple way:

    return mDb.rawQuery("SELECT * FROM myTable WHERE column1 = "+ someValue, null);
    
    0 讨论(0)
提交回复
热议问题