Possible reason one: simply put, the name of the id column is wrongly written, can not find the id column
Double-check your delete in the sql statement id has not been written wrong, there may be a time when you set up a table may be different from the current one, the project with the former table, for example, I started to build a table with _id, and then change the code too many times, the statement to build the table also changed, but the project with the beginning of the table, so the sql statement still need to use _id
Possible reason 2: The database version was not increased, which led to this error
Add the following code to your MySQLHelper.java, which is used to upgrade the database
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } }
Similar Posts:
- [How to Solve] SQLite database error: no such column
- [Solved] SQL Error (3621): String or binary data would be truncated The statement has been terminated.
- [Solved] EF An error occurred while updating the entries. See the inner exception for details.
- Thinkphp6 Error: constraint violation: 1052 Column ‘id’ in where clause is ambiguous
- Program error: the table or view does not exist [Solved]
- mysqldump unknown table ‘column_statistics’
- @Override must override a superclass method problem solving
- Error during WebSocket handshake 403 [How to Solve]
- How to Solve JAVA @override error
- Hive Error: Error while compiling statement: FAILED: ParseException line 1:7 Failed to recognize