String temp_address="nothing"; try { String selectQuery = "SELECT lastchapter FROM Bookdetails INTO"+temp_address+"WHERE bookpath=?"; db.execsql(selectQuery,new String[] { fileName }); System.out.println(temp_address+" result of select Query"); } catch(Exception e) { System.out.println(e+" is the error here"); } finally { db.close(); }
logcat的
android.database.sqlite.sqliteException: near "bookpath": Syntax error:,while compiling: SELECT lastchapter FROM Bookdetails INTOnothingWHERE bookpath=?