2

i' ve a problem with my DB. I've created this table that works only with the first 4th column; when i try to run the app with the new inserted column codice i've this error:

E/SQLiteLog: (1) table Cuccioli has no column named Codice

E/SQLiteDatabase: Error inserting Nome=Ff Codice=Namjje Sesso=Maschio Razza=Volpino android.database.sqlite.SQLiteException: table Cuccioli has no column named Codice (code 1): , while compiling: INSERT INTO Cuccioli(Nome,Codice,Sesso,Razza) VALUES (?,?,?,?)

This is cretion table code

public static final String CREATE_TABLE =
        "CREATE TABLE " + TABLE_NAME + "("
                + COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT,"
                + COLUMN_NOME + " TEXT,"
                + COLUMN_RAZZA + " TEXT,"
                + COLUMN_SESSO + " TEXT,"
                + COLUMN_CODICE + " TEXT"
                + ")";

0 Answers0