Inserting data into SQLite database, datatype mismatch

后端 未结 1 1322
情深已故
情深已故 2021-01-26 07:22

I wanted to insert data into the database using SQLite but i fail to do it. I pressed on the button I\'ve created to input but the data could not be sent into the database. I\'v

相关标签:
1条回答
  • 2021-01-26 08:05

    First start changing your code from

    db.execSQL("DROP TABLE IF EXISTS " + DATABASE_NAME);
    

    to

    db.execSQL("DROP TABLE IF EXISTS " + DATABASE_TABLE);
    

    Good chance this explains the datatype error.

    0 讨论(0)
提交回复
热议问题