我已经创建了'friendDelete'
触发器,触发器已成功创建,但是当我尝试通过删除friend's
表中的一行来尝试触发触发器时,它似乎没有引发应用程序错误
SQL> CREATE TRIGGER `friendDelete`
AFTER DELETE ON `friend`
FOR EACH ROW
BEGIN
IF DELETING THEN
DBMS_OUTPUT.PUT_LINE(`:old.friendName` || 'is gone');
END IF;
END;
/
Trigger created.
SQL> DELETE FROM `friend`
WHERE `friendID` = 70001;
1 row deleted.
我希望触发器在删除行后引发应用程序错误