Is it possible construct a query at runtime?
@Query(\"SELECT * FROM playlist \" +
\"WHERE play
@Query("select * from task where state = :states and sentdate between :fromdate and :todate")
List getFilterAll(String states, String fromdate, String todate);
Here we need to use column name state. Whenever need to achieve custom query just pass the value through the parameter from the activity or fragement will get in to the interface we will apply inside the query. like example in the above code (:fromdate
, :todate
)
Colon is must. Which parameter you will going to use inside the query we will mention before start with :
symbol.