This is due to the fact that all values except the primary key are null when executing UPDATE SQL.
if (flag) {
db.execSQL(sql.toString(), valueTempList.toArray());
}
Just add a judgment to it.
Read More:
- Unknown error (SQLite code 14): could not open database (How to Fix)
- In SQLite database, set the default value for the field as the current time
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed
- C programming interface of SQLite database (6) result codes and error codes
- sqlite3.OperationalError: no such column:
- Error in SQLite: error: near “)”: syntax error
- The problem of [connection lost contact] after C # code connecting Oracle database for a period of time
- LDAP: error code 21 – objectclass: value ා 0 invalid per syntax
- python sqlite Error IntegrityError: UNIQUE constraint failed: table_area1.user_name
- How to solve MySQL error 1049 (42000): unknown database ‘database’
- Syntax Error: Non-UTF-8 code start with \xce’in file
- Error: Error parsing D:\new_android\Android SDK\system-images\android-25\android-wear\armeabi-v7a\de
- mysql workbench Error Code: 1046. No database selected Select the default DB to be used
- 1716438 – Error :” Failed to load database information Details: The Database connector crdb_bwquery.
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Install Android SDK — stopping ADB server failed (code – 1)
- Android studio introduces code error, but it can run normally
- Solve the database connection failure of Discuz! Database error (1045) notconnect Forum
- An error is reported when kettle connects Oracle database and MySQL database
- configure: error: Package requirements (sqlite3 」 3.7.4) were not met: