0
我想通過phpmyadmin創建一個觸發器在MYSQL,我收到一條錯誤消息,只是說「錯誤」,它沒有給我任何細節什麼是錯誤。 這裏是我的觸發器:MYSQL觸發器錯誤phpmyadmin
delimiter //
CREATE TRIGGER teacher_ref BEFORE DELETE ON teacher
FOR EACH ROW
BEGIN
DELETE FROM subject WHERE teacherId=old.teacherId;
END;
//
delimiter ;
您的觸發器定義對我來說看起來還不錯。 –