ciao
dov'è l'errore?
Messaggio di MySQL:codice:CREATE TABLE `tabella1` ( `id` int(11) NOT NULL, `campo1` int(3) NOT NULL default '0', `campo2` int(3) NOT NULL default '0', `campo3` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ) TYPE=InnoDB; CREATE TABLE `tabella2` ( `id_2` int(11) NOT NULL auto_increment, `id_1` varchar(255) default '', `campo1` int(3) NOT NULL default '0', `campo2` int(3) NOT NULL default '0', `campo3` int(11) NOT NULL default '0', PRIMARY KEY (`id_2`, `id_1`), FOREIGN KEY (`id_1`) REFERENCES tabella1 (`id`) ON DELETE CASCADE ) TYPE=InnoDB AUTO_INCREMENT=0;
#1005 - Can't create table './database/tabella2.frm' (errno: 150)
grazie

Rispondi quotando
