I need to write this query by using sqllite room query with Dao Class. I.getItemID() is a dynamic variable.
"SELECT item_quantity FROM item WHERE item_id ='"+I.getItemID()+"'"
I need to write this query by using sqllite room query with Dao Class. I.getItemID() is a dynamic variable.
"SELECT item_quantity FROM item WHERE item_id ='"+I.getItemID()+"'"
If it is what you meant, you almost got it then:
Check out this link for more information regarding accessing-data using room.