android - Sqlite query using where condition having more than one condition to satisfy -
please find wrong here
here _id , chek column of db write query search has id =id , check =number
public cursor query(int id){ return mydatabase.query("question", null,"_id = "+id+ "and " + "chek ="+number,null, null, null, null); }
may you:
replace query these lines..
public cursor query(int id){ return mydatabase.query("question", null,"_id = "+id+ " , " + "chek ="+number,null, null, null, null);
keep space between double quotes in , :" , "
otherwise string
example: _id=3and check =9
Comments
Post a Comment