I was working in android studio in an app that passes the user's info to a table using SQLite. It was working but I needed to add another data so according to me I convert the table to another of 4 columns but in the logcat appears this message
"E/SQLiteLog: (1) table STUDENTS has 3 columns but 4 values were supplied"
and this is what I have:
public class SQLiteDb extends SQLiteOpenHelper {
private static final String TABLE_STUDENTS="CREATE TABLE STUDENTS(NAMES TEXT,
LASTNAMES TEXT, ID TEXT, IMAGE TEXT)";
public SQLiteDb(Context context) {
super(context, "db_students", null, 1);
}
}
Does anyone know how can I fix it to accept 4 values?