CREATE TABLE IF NOT EXISTS `schoolfellow`.`school` (
`School_ID` INT(11) NOT NULL AUTO_INCREMENT,
`Name` CHAR(0) NULL DEFAULT NULL,
`Zone` CHAR(25) NULL DEFAULT NULL,
`Detail` TEXT NULL DEFAULT NULL,
PRIMARY KEY (`School_ID`),
CONSTRAINT `fk_school_person1`
FOREIGN KEY (`School_ID`)
REFERENCES `schoolfellow`.`person` (`School`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 501
DEFAULT CHARACTER SET = utf8
COMMENT = '//学校表';
10:53:48 CREATE TABLE IF NOT EXISTS `schoolfellow`.`school` ( `School_ID` INT(11) NOT NULL AUTO_INCREMENT, `Name` CHAR(0) NULL DEFAULT NULL, `Zone` CHAR(25) NULL DEFAULT NULL, `Detail` TEXT NULL DEFAULT NULL, PRIMARY KEY (`School_ID`), CONSTRAINT `fk_school_person1` FOREIGN KEY (`School_ID`) REFERENCES `schoolfellow`.`person` (`School`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 501 DEFAULT CHARACTER SET = utf8 COMMENT = '//学校表' Error Code: 1215. Cannot add foreign key constraint 0.469 sec