Presentation is loading. Please wait.

Presentation is loading. Please wait.

TOTAMT NUMBER(6,2) the log will be written. SQL> @ trigger1.

Similar presentations


Presentation on theme: "TOTAMT NUMBER(6,2) the log will be written. SQL> @ trigger1."— Presentation transcript:

1 TOTAMT NUMBER(6,2) the log will be written. trigger1

2 / This program is called use_trigger1

3 27-JUL / and posted the 160 to total_notes using its insert.

4 27-JUL In this example I am running the update program again and it is causing the trigger to fire and putting a new total in the total_notes that the trigger writes to. Note that used to have 10 in it. It has been updated to 45 which is an increase of 45.

5 / will happen. SET SERVEROUTPUT OFF the insert is done - note that it only gets fired in the classlev is not SENIOR new.classlev is the new classlev that is going to be inserted. SENIOR

6 1234 John Doe FRESHMAN This works successfully - 15 is within the range for freshman so the insert done by the program is successful.

7 1234 John Doe FRESHMAN 15 is not in the range for a junior so the record is not inserted.

8 SENIOR 1234 John Doe FRESHMAN Note that checking is not done on a SENIOR so the insert happens even though the range is incorrect.


Download ppt "TOTAMT NUMBER(6,2) the log will be written. SQL> @ trigger1."

Similar presentations


Ads by Google