2
I created a database on sqlite3
in version 3.9.2 and had problems with Foreign key.
alter table table_01 add column tab_2 integer foreign key references table_02(id);
// Esse deu erro de sintaxe no foreign key
alter table table_01 add column tab_2 integer foreigin key references table_02(id);
// Já esse, adicionou o campo com sucesso.
as it is in the code, gdb accepted foreigin instead of Foreign, someone might know to tell me something about this?
Take a look at this documentation: http://www.sqlite.org/syntaxdiagrams.html#Foreign-key-clause helped me a lot to understand syntax and the limits of sqlite with Foreignkeys.
– Rodrigo