Android sqlite: how to retrieve specific data from particular column?

后端 未结 9 2220
生来不讨喜
生来不讨喜 2020-12-31 18:17

I am developing restaurant menu application. My app has a sqlite table which has these columns:

\"id\", \"category\", \"item_name\"

Content

9条回答
  •  梦毁少年i
    2020-12-31 18:59

    String query = "SELECT * FROM Table_Name WHERE Col_Name='name'";
    Cursor cursor = mDb.rawQuery(query, null);
    

提交回复
热议问题