为什么这个说法不起作用?
CREATE TABLE capacidad (
cod_capacidad INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
cod_area INTEGER UNSIGNED NOT NULL,
capacidad VARCHAR(100) NOT NULL,
PRIMARY KEY(cod_capacidad),
INDEX capacidad_FKIndex1(cod_area),
FOREIGN KEY(cod_area)
REFERENCES AREA(cod_area)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
ENGINE=INNODB;