I want to make a WHERE
query in android without naming the specific field name.
namely, I want to make a WHERE
query without defining the field name (it will determine at runtime).
I tried to do something like this:
@Query("SELECT COUNT(*) FROM Workspace WHERE :name = :value")
int countFieldsFor(String name, String value)
But it's not working...
How can I implement this? Even by querying directly to the database (without room)
Thanks.