android.database.sqlite.SQLiteException: no such column: USERNAME (code 1): , while compiling: SELECT * FROM USERS WHERE USERNAME=?


Solutions on the web1087

Solution icon of stackoverflow
no such column: USERNAME (code 1): , while compiling: SELECT * FROM USERS WHERE USERNAME=?

Solution icon of stackoverflow
no such column: username (code 1): , while compiling: select * from users where username =? and password = ?

Solution icon of stackoverflow
no such column: USERNAME (code 1): , while compiling: SELECT * FROM LOGIN WHERE USERNAME = ?

Solution icon of stackoverflow
no such column: COLUMN_USER_USERNAME (code 1): , while compiling: SELECT usuaid, username, password FROM usuario WHERE COLUMN_USER_USERNAME = ?

Solution icon of stackoverflow
via Stack Overflow by Smu
, 1 year ago
no such column: LECTURE_NOTES (code 1): , while compiling: SELECT _id, USERNAME, LECTURE_NAME, LECTURE_DATE, LECTURE_NOTES FROM LECTURE_TABLE WHERE _id=? AND USERNAME=?

Solution icon of stackoverflow
no such table: USERLOGIN (code 1): , while compiling: SELECT USERNAME FROM USERLOGIN WHERE USERNAME = 'steven'

Solution icon of github
via GitHub by lxzliuxinzhu
, 10 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Solution icon of github
via GitHub by 80998062
, 4 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Solution icon of github
via GitHub by sicklife
, 1 year ago
no such table: snsExtInfo2 (code 1): , while compiling: SELECT userName FROM snsExtInfo2 WHERE ROWID=? LIMIT 1

Solution icon of github
via GitHub by lxzliuxinzhu
, 10 months ago
no such table: snsExtInfo3 (code 1): , while compiling: SELECT userName FROM snsExtInfo3 WHERE ROWID=? LIMIT 1

Stack trace

android.database.sqlite.SQLiteException: no such column: USERNAME (code 1): , while compiling: SELECT * FROM USERS WHERE  USERNAME=?
	at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
	at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:897)
	at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:508)
	at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:726)
	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:1426)
	at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1273)
	at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1144)
	at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1312)
	at com.example.naukamagisterka.LoginDataBaseAdapter.getSingleEntryUsers(LoginDataBaseAdapter.java:81)
	at com.example.naukamagisterka.SignUPActivity$1.onClick(SignUPActivity.java:44)
	at android.view.View.performClick(View.java:4764)
	at android.view.View$PerformClick.run(View.java:19844)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5376)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

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

18 times, 2 months ago
11 times, 3 months ago
2 times, 4 months ago
58 times, 7 months ago
4 times, 7 months ago
111 more bugmates