/ Published in: Other
Add foreign key relationship
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
ALTER TABLE `empleado` ADD CONSTRAINT `fk_Empleado_Ubigeo` FOREIGN KEY (`CodigoUbigeo`) REFERENCES `ubigeo` (`CodigoUbigeo`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `empleado` ADD CONSTRAINT `fk_Empleado_Ubigeo` FOREIGN KEY (`CodigoUbigeo`) REFERENCES `ubigeo` (`CodigoUbigeo`) ;