android.database.sqlite.SQLiteException

no such column: alex (code 1): , while compiling: SELECT Image FROM User WHERE Name = alex

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1076

  • via Stack Overflow by John
    ,
  • Stack trace

    • android.database.sqlite.SQLiteException: no such column: alex (code 1): , while compiling: SELECT Image FROM User WHERE Name = alex at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:888) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:499) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58) at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1253) at com.example.seng.healthyapp.MainActivity$1.onClick(MainActivity.java:76) at android.view.View.performClick(View.java:4230)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Indri YunitaIndri Yunita
    2 times, last one
    Aria PahlavanAria Pahlavan
    8 times, last one
    Unknown visitor
    Unknown visitorOnce,
    mrokay97mrokay97
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    108 more bugmates