
Untitled
By: a guest on
Apr 18th, 2012 | syntax:
None | size: 0.90 KB | hits: 7 | expires: Never
MySQL Workbench, Newbie to DB, Constraint Problems - Error 1005, erno 121
CONSTRAINT `dish_type`
FOREIGN KEY (`dish_type` )
REFERENCES `acs_operations_dev`.`dish_types` (`id` )
ON DELETE NO ACTION
ON UPDATE CASCADE,
CONSTRAINT `tech_number`
FOREIGN KEY (`tech_number` )
REFERENCES `acs_operations_dev`.`employees` (`tech_number` )
ON DELETE NO ACTION
ON UPDATE CASCADE)
PRIMARY KEY (`id`) ,
INDEX `tech_number` (`tech_number` ASC) ,
INDEX `car` (`car` ASC) ,
INDEX `field_dev_coach` (`field_dev_coach` ASC) ,
UNIQUE INDEX `etad_user_UNIQUE` (`etad_user` ASC) ,
CONSTRAINT `tech_number`
FOREIGN KEY (`tech_number` )
REFERENCES `acs_operations_dev`.`employees` (`tech_number` )
ON DELETE NO ACTION
ON UPDATE CASCADE,
CONSTRAINT `car`
FOREIGN KEY (`car` )
REFERENCES `acs_operations_dev`.`cars` (`id` )
ON DELETE NO ACTION
ON UPDATE CASCADE,