How to query Room database for LiveData while passing a variable

后端 未结 0 1871
臣服心动
臣服心动 2021-01-16 04:41

When I hard code the variable the query works:

From the Dao:

@Query("SELECT amount FROM note_table WHERE item = \'Apple\'")
    LiveData

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题