android.database.sqlite.SQLiteException: no such column: name (code 1): , while compiling: select name, pass fromcontacts

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Cedric Woo
, 9 months ago
no such column: name (code 1): , while compiling: select name, pass fromcontacts
via Stack Overflow by user3597791
, 2 years ago
no such column: eventId (code 1): , while compiling: SELECT * FROM events WHERE eventId='5'
via Stack Overflow by John
, 1 year ago
no such column: alex (code 1): , while compiling: SELECT Image FROM User WHERE Name = alex
via GitHub by lognaturel
, 1 month ago
no such table: images (code 1): , while compiling: SELECT tile_data FROM images LIMIT 0,1
via grman.at by Unknown author, 1 year ago
no such table: <TABLE> (code 1): , while compiling: SELECT <column list> FROM <TABLE>
via thinkingaboutnothing.com by Unknown author, 2 years ago
no such column: c.description (code 1): , while compiling: ...
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.(SQLiteProgram.java:58)
at android.database.sqlite.SQLiteQuery.(SQLiteQuery.java:37)
at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314)
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)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
110 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.