Reputation: 91
@Query("SELECT DISTINCT number FROM ${DBTables.SAVED_INPUTS} WHERE number LIKE ':input%'")
fun getSavedInputs(input : String) : List<SavedInput>
This is not working though... I want to pass in that input from method to my query
Upvotes: 1
Views: 331
Reputation: 91
@Query("SELECT DISTINCT number FROM ${DBTables.SAVED_INPUTS} WHERE number LIKE :input%")
fun getSavedInputs(input : String) : List
Turned out to be this
Upvotes: 1