android.database.sqlite.SQLiteException

no such column: name (code 1): , while compiling: select name, pass fromcontacts

Solutions on the web1734

  • via Stack Overflow by Cedric Woo
    , 5 months ago
    no such column: name (code 1): , while compiling: select name, pass fromcontacts
  • no such column: uid (code 1): , while compiling: Select uid pass, fromcontacts
  • via Stack Overflow by P714
    , 1 year ago
    no such column: pass (code 1): , while compiling: select uname, pass from information
  • Stack trace

    • android.database.sqlite.SQLiteException: no such column: name (code 1): , while compiling: select name, pass fromcontacts at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:882) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:493) 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.username.mp.DatabaseHelper.searchPass(DatabaseHelper.java:59) at com.example.username.mp.Student$1.onClick(Student.java:42) at android.view.View.performClick(View.java:4084) at android.view.View$PerformClick.run(View.java:16966) at android.os.Handler.handleCallback(Handler.java:615) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4745) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method)

    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

    Once, 1 year ago
    2 times, 3 months ago
    8 times, 8 months ago
    Unknown user
    Once, 10 months ago
    2 times, 11 months ago
    108 more bugmates