I can\'t get WHERE IN clause to work on android SQLite database.
Is there any way to execute a statement like this in android? :
SELECT body FROM ta
Adding to Cristian answer: While his answer will work, you should try to use the correct way of querying:
db.rawQuery("Select * from table1 where title = ?", new String[]{param1});
This approach can also be used with WHERE IN clause, but the passed string has to be in format of 'asd','zxc','qwe'
Like this:
String param1 = "\'asd\',\'zxc\',\'qwe\'";
db.rawQuery("Select * from table1 where title in (?)", new String[]{param1});