DELIMITER //
CREATE TRIGGER Equipment_Out
AFTER INSERT
ON gw_loanform FOR EACH ROW
BEGIN
INSERT INTO equipment( RECORD_NO,EQUIPMENT_BORROWED,EQUIPMENT_NUMBER)
VALUES( NEW.RECORD_NO,NEW.EQUIPMENT_BORROWED,NEW.EQUIPMENT_NUMBER);
END; //
DELIMITER ;
gw_loanForm表
设备表