I tried the following query, but it does not give any result.
SELECT * FROM details WHERE name LIKE: name
I used AutoCompleteTextview to search. Is there a search query with a substring?
As Moin Khan suggested, adding a wildcard to the string before sending it to Room helped me.
query = "%"+query+"%";
Example:
@Query("SELECT * FROM user WHERE first_name LIKE :firstName ") User findByName(String firstName);
I think u should use a different name for "name" .
Source: https://habr.com/ru/post/1678307/More articles:Mock axios with axios-mock-adapter get undefined resp - unit-testingFind an integer that appears exactly once in an array of unsorted integers in Java - javaHow optimized are Java 8 stream filters by collection methods? - javaDifference when an observed variable is updated inside an action method and a simple function in mobx? - javascriptWhat is the meaning of the send keyword in Ruby AST? - ruby | fooobar.comКак избавиться от встроенного стиля с помощью jquery или javascript - javascriptWhy fill in, copy (dstList, srcList), shuffle, reverse, rotate the methods of the Collections class to accept only List as an argument? - javahttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1678310/how-to-dynamically-assign-objects-to-a-string-key-in-slices-in-golang&usg=ALkJrhgU_552aB32tlgI04IdXOZQp5hXew.NET Standard / .NET Core Code Analysis and Code Contracts with VS 2017 - c #Giving a background color to the body overlaying the entire page. What for? - htmlAll Articles