I have a table in SQLite where I want to update some of the columns. Here is my query:
String UPDATE_INFORMATION = "UPDATE " + TABLE_USER + " SET "
+ KEY_ADDRESS_OF_LIVING + " = " + addressOfLiving + ", "
+ KEY_PHONE + " = " + phoneNumber + ", "
+ KEY_IDNP + " = " + IDNP
+ " WHERE " + KEY_ID + " = 1";
The values in debug:
UPDATE user SET address = Efdsdfd, phone = 3797333, idnp = 2006002050245 WHERE id = 1
and the error message I get when running this query is:
android.database.sqlite.SQLiteException: no such column: Efdsdfd
Why it takes the "Efdsdfd" as column name?