Foreign key mismatch SQLite Foreign key mismatch SQLite sqlite sqlite

Foreign key mismatch SQLite


Your foreign key references the fields idS and idL in table LOCALIZACAO. There are no such fields, there's only an id field there.

I guess you're only seeing this when inserting records because SQLite is not very pedantic. Other databases wouldn't have let you create such a foreign key.