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 | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 6 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