I have one table “TABLE_QUESTION”. I need to fetch record by passing exam_id and question_Id. I write one query to fetch record from table but it shows exception "SQLite Exception near question_id".
Here is my query for your reference..
String selectQuery=("select * from question where exam_id ='" + examId + " and question_id ='" + questionId +"'" );
Cursor cursor = db.rawQuery(selectQuery, null);
you missed one single quote after
examId + "must beexamId + " '