DELIMITER $$ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `hedera`.`order_beforeDelete` BEFORE DELETE ON `order` FOR EACH ROW BEGIN DELETE FROM orderRow WHERE orderFk = OLD.id; END$$ DELIMITER ;