Wählen Sie die Abfrage in SQLite Android

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=?

Ich möchte nur das Ergebnis der obigen Abfrage nehmen, damit die im letzten Kapitel gespeicherte Zeichenfolge in temp_address verfügbar ist. Bitte helfen Sie

Ich bin neu in Android SQLite-Datenbank bitte helfen

Antworten auf die Frage(3)

Ihre Antwort auf die Frage