Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<String> types;
- String where = "";
- for (String type: types){
- where = where + " OR typeColumn= '" + type +"' ";
- }
- where = " WHERE " + where;
- String query = "SELECT * FROM table" + where
- @Query("SELECT * FROM table")
- Maybe<List<Table>> getByTypes(List<String> types);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement