Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
"If MySQL reports an error number 1005 from a CREATE TABLE statement, and the error message refers to error 150, table creation failed because a foreign key constraint was not correctly formed"
La data non identifica un singolo record all'interno della tabella partite(non è né primary key né unique key), motivo per cui non può essere usata...
Al suo posto puoi benissimo usare partite.id_partita... (altrimenti che ci starebbe a fare? )