9 lines
197 B
MySQL
9 lines
197 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`entry_beforeDelete`
|
||
|
BEFORE DELETE ON `entry`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
DELETE FROM buy WHERE entryFk = OLD.id;
|
||
|
END$$
|
||
|
DELIMITER ;
|