android.database.sqlite.SQLiteException: no such table: table_name2 (code 1): , while compiling: INSERT INTO table_name2(title,time,active) VALUES (?,?,?)

Stack Overflow | mm24mm | 2 months ago
  1. 0

    Android Studio: How to have 2 tables in the same database/java class?

    Stack Overflow | 2 months ago | mm24mm
    android.database.sqlite.SQLiteException: no such table: table_name2 (code 1): , while compiling: INSERT INTO table_name2(title,time,active) VALUES (?,?,?)
  2. 0

    creating tables in existing database sqlite sugar orm

    Stack Overflow | 2 years ago | user3290805
    android.database.sqlite.SQLiteException: no such table: NOW (code 1): , while compiling: INSERT INTO NOW(ADDRESS,TYPE,NAME,CREATED) VALUES (?,?,?,?)
  3. 0

    Android Studio|| SQLite Error when create multiple table

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: no such table: subject (code 1): , while compiling: INSERT INTO subject(username,subjectName) VALUES (?,?)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SQLite - Column not creating

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: table login has no column named tel_no (code 1): , while compiling: INSERT INTO login(email,name,tel_no,created_at,uid) VALUES (?,?,?,?,?)
  6. 0

    Database cannot be created

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: no such table: Databasehandler (code 1): , while compiling: INSERT INTO Databasehandler(_surname,_postcode,_telephoneno,_firstname) VALUES (?,?,?,?)

  1. Alexandru Popa 7 times, last 4 weeks ago
  2. jk 2 times, last 5 months ago
  3. bayukresno 40 times, last 5 months ago
  4. Roberto Tomás 3 times, last 8 months ago
  5. zildjiandm 12 times, last 8 months ago
2 more registered users
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.database.sqlite.SQLiteException

    no such table: table_name2 (code 1): , while compiling: INSERT INTO table_name2(title,time,active) VALUES (?,?,?)

    at android.database.sqlite.SQLiteConnection.nativePrepareStatement()
  2. Android Platform
    SQLiteDatabase.insert
    1. android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
    2. android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
    3. android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
    4. android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
    5. android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
    6. android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:31)
    7. android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1469)
    8. android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1341)
    8 frames
  3. com.bignerdranch.android
    NewSessionActivity.btn_submit
    1. com.bignerdranch.android.assignment2.database.ListBaseHelper.addSessionInfo(ListBaseHelper.java:65)
    2. com.bignerdranch.android.assignment2.NewSessionActivity.btn_submit(NewSessionActivity.java:62)
    2 frames
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  5. Android v7
    AppCompatViewInflater$DeclaredOnClickListener.onClick
    1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4780)
    2. android.view.View$PerformClick.run(View.java:19866)
    3. android.os.Handler.handleCallback(Handler.java:739)
    4. android.os.Handler.dispatchMessage(Handler.java:95)
    5. android.os.Looper.loop(Looper.java:135)
    6. android.app.ActivityThread.main(ActivityThread.java:5254)
    6 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames