android sqlite query with multiple where

后端 未结 4 878
失恋的感觉
失恋的感觉 2020-12-30 03:40

Here\'s my current sqlite code:

Cursor c = sqlDatabase.rawQuery(\"select docid as _id, recipeID from \" + TABLE_RECIPE_NAME + 
                \" where \" +          


        
4条回答
  •  佛祖请我去吃肉
    2020-12-30 03:54

    Probably you have to use AND. You want a query that should return the value in Cursor populated with comparing multiple values. So, you just need to use AND. Instead of using a comma(,). Above answer seems correct but it just lacks the explanation.

提交回复
热议问题