我试图放下一张桌子,在我遇到这个问题之前
并已成功解决,但现在我尝试删除表,但出现此错误:
ERROR: Error 1005: Can't create table 'radiotaxi_final.#sql-108_28' (errno: 150)
该声明 :
ALTER TABLE `RadioTaxi_Final`.`DireccionConductor` CHANGE COLUMN `Conductor_cedula` `Conductor_cedula` INT(11) NOT NULL ,
ADD CONSTRAINT `fk_DireccionConductor_Conductor1`
FOREIGN KEY (`Conductor_cedula` )
REFERENCES `RadioTaxi_Final`.`Conductor` (`cedula` )
ON DELETE NO ACTION
ON UPDATE NO ACTION
结果 :
SQL script execution finished: statements: 11 succeeded, 1 failed
桌子 :
CREATE TABLE `conductor` ( `cedula` int(10) unsigned NOT NULL, `apellidos` varchar(30) COLLATE utf8_spanish2_ci NOT NULL, `nombres` varchar(30) COLLATE utf8_spanish2_ci NOT NULL, `fechaNacimiento` date NOT NULL, PRIMARY KEY (`cedula`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish2_ci