I need to build a query.
Below is the table of my DB:
ID Name
20 ABC1
30 ABC2
40 ABC3
60 ABC4
70 ABC5
80 ABC6
I need to get the records for the ID's 30 , 40 , 70.
I have written a query as below , but its giving me error.
String query = "SELECT * FROM tableName WHERE ID = '30','40','70' "
The above query I am passing to below method:
db.rawQuery(query ,null);
but its throwing below error:
I/SqliteDatabaseCpp(19091): sqlite returned: error code = 1, msg = near ",": syntax error, db=xxx
Please let me know what can be do to resolve the issue.