Professional Documents
Culture Documents
Roll No:13144;
Tigger.sql
declare
diff_price float;
begin
if updating then
diff_price:=:new.price-:old.price;
end if;
end;
OUTPUT
SQL> @trigger.sql;
Trigger created.
no rows selected
no rows selected
1 row updated.
1 row deleted.