android.database.sqlite.SQLiteException: near "mull": syntax error (code 1): , while compiling: create table contacts (id integer primary key not mull auto_increment
A declaração correta para uma coluna PK de incremento automático é
integer primary key autoincrement
, não integer primary key not mull auto_increment
. Você tem um erro de digitação em null
e o not null
não é necessário. Não há sublinhado no sqlite autoincrement
.