How to create Triggers in Oracle


List all triggers

SELECT * FROM USER_TRIGGERS

Create Trigger

CREATE TRIGGER TRI_PRETECHEMPLOYEE
BEFORE INSERT OR UPDATE ON PRETECHEMPLOYEE
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE('Trigger started');
END;

Note: PRETECHEMPLOYEE table needs to be created.

Drop a trigger

DROP TRIGGER TRI_PRETECHEMPLOYEE

Please see this link to know more about Triggers Oracle Triggers

No comments:

Post a Comment

Confusion Matrix + Precision/Recall (Super Simple, With Examples)

  Confusion Matrix + Precision/Recall (Super Simple, With Examples) 1) Binary Classification Setup Binary classification means the model p...

Featured Posts