我是触发器的新手,只是学习它们。当我从相应的表中删除一行时,我没有获得DBMS输出,但我知道该行已被删除。我获得触发器的DBMS输出的唯一时间是执行COMMIT或RollBACK。它是否正确?从我读过的表格开始,当我删除一行时,触发器会自动运行,但对我来说似乎并非如此。此外,我确保启用了触发器并设置了serveroutput。
create or replace Trigger tadr_Employee
After Delete ON employee
For Each Row
Begin
DBMS_OUTPUT.PUT_LINE('Tigger Fired After deleting anything from Lab10_Employees tadr');
End;
Delete FROM Employee
Where EmployeeID = 11111;