android.database.sqlite.SQLiteException: no such table: student_table (code 1): , while compiling: select * from student_table at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498) 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:1316)at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)

Stack Overflow | noman baig | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Sqlite in android studio getting error when inserting values no such table.Two exception a

    Stack Overflow | 7 months ago | noman baig
    android.database.sqlite.SQLiteException: no such table: student_table (code 1): , while compiling: select * from student_table at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498) 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:1316)at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)

    Root Cause Analysis

    1. android.database.sqlite.SQLiteException

      no such table: student_table (code 1): , while compiling: select * from student_table at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:887) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:498) 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:1316)at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)

      at com.example.admin.databaseapps.Databasehelp.getAlldata()
    2. com.example.admin
      MainActivity$1.onClick
      1. com.example.admin.databaseapps.Databasehelp.getAlldata(Databasehelp.java:60)
      2. com.example.admin.databaseapps.MainActivity$1.onClick(MainActivity.java:76)
      2 frames
    3. Android Platform
      View$PerformClick.run
      1. android.view.View.performClick(View.java:5198)
      2. android.view.View$PerformClick.run(View.java:21147)
      2 frames