Ciao a tutti. E' la prima volta che scrito nella sezione database (stiamo evolvendo!)
Dunque... io ho questo script per la creazione di una tabella, ma mi da l'errore all'ultima riga.
La cosa è strana perchè per un altra tabella ho concluso alla stessa maniera ma non ha dato errore!!
Sapreste dirmi dove sbaglio?
Grazie mille!Codice PHP:CREATE TABLE profile (
`id` INT, users_id INT,
INDEX par_ind (users_id),
FOREIGN KEY (users_id) REFERENCES users(id) ON DELETE CASCADE,
`opz1` varchar(100) NOT NULL,
`opz2` int(1) NOT NULL DEFAULT '0',
`opz3` int(1) NOT NULL DEFAULT '0',
`opz4` int(1) NOT NULL DEFAULT '0',
`opz5` int(1) NOT NULL DEFAULT '0',
`opz6` int(1) NOT NULL DEFAULT '0',
`opz7` int(1) NOT NULL DEFAULT '0',
`opz8` int(1) NOT NULL DEFAULT '0',
`opz9` int(1) NOT NULL DEFAULT '0',
`opz10` int(1) NOT NULL DEFAULT '0',
`opz11` int(1) NOT NULL DEFAULT '0',
`opz12` int(1) NOT NULL DEFAULT '0',
`opz13` int(1) NOT NULL DEFAULT '0',
`opz14` int(1) NOT NULL DEFAULT '0',
`opz15` int(1) NOT NULL DEFAULT '0',
`opz16` int(1) NOT NULL DEFAULT '0',
`opz17` int(1) NOT NULL DEFAULT '0',
`opz18` int(1) NOT NULL DEFAULT '0',
`opz19` int(1) NOT NULL DEFAULT '0',
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
![]()

Rispondi quotando
