0
Commando: ALTER TABLE extras ADD FOREIGN KEY (login) REFERENCES usuario(login);
Answer: Error Code: 1215. Cannot add foreign key constraint
Cannot find an index in the referenced table where the column references appear as the first columns, or the types column in the table and the referenced table do not correspond to the restriction. Please note that the internal storage type of ENUM and SET changed in
I cannot identify the reason for the mistake. Can anyone help me?
Ps. as you can see, the two fields are of the same type ( varchar (15) )
Since thanks
Which DBMS you are using?
– Gabriel
I am using Mysql
– ARodrigues