11 lines
282 B
MySQL
11 lines
282 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`creditInsurance_beforeInsert`
|
||
|
BEFORE INSERT ON `creditInsurance`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
IF NEW.creditClassificationFk THEN
|
||
|
SET NEW.creditClassification = NEW.creditClassificationFk;
|
||
|
END IF;
|
||
|
END$$
|
||
|
DELIMITER ;
|