I have a query in which I have multiple In statements.
Query
select TCF.Car_Make,TCF.Car_Model,TCF.Car_Ver,Prices,Rear_Parking_Sensors,Airbags,Engine_Immobilizer,Power_Windows,Integrated_In_Dash_Music_System,Steering_Adjustment from Car_Feature AS TCF JOIN Car_Spec AS TCS where TCF._id=TCS._id and TCS.Prices between '0' and '80,00,00,000' and TCS.Fuel_Type IN("Petrol","Diesel","null","null") and TCF.Car_Make IN("null","null","null","null","null","null","null","Force Motors","Ford","Hindustan Motors","Honda","null","null","Lamborghini","Land Rover","null","null","null","null","null","null","null","null","null","null","null","null","null","null","null")
My Query works perfectly fine when i execute it in Sqlite browser.
But when I try to execute the same query in my helper class using db.execSQL() statement it doesn't work.
My Logcat shows error
07-31 05:06:03.085: E/AndroidRuntime(334): Caused by: android.database.sqlite.SQLiteException: unknown error: Queries cannot be performed using execSQL(), use query() instead.
It says to use db.query() statement.
The confusion is how to i use IN statement in db.query()
Can anyone please help me.