PL_SQL - Triggers
PL_SQL - Triggers
● Because this is a new record so old salary is not available and above result is coming as null.
Now, let us perform one more DML operation on the CUSTOMERS table. Here is one UPDATE statement, which will
update an existing record in the table:
UPDATE customersSET salary salary + 500WHERE id=2;
● When a record is updated in CUSTOMERS table, above create trigger display salary_changes will be fired and it will
display the following result:
Old salary: 1500
New salary: 2000