[摘要]create trigger tri_emp after insert on employees for each row insert into new values(:new....
create trigger tri_emp
after insert on employees
for each row
insert into new values(:new.sno,:new.sname,:new.sex,:new.depart)
--------------
create trigger tri_emp_delete
after delete on employees
for each row
delete from new where sno=:old.sno
--------------
create trigger tri_emp_update
after update on employees
for each row
begin
delete from new where sno=:old.sno;
insert into new values(:new.sno,:new.sname,:new.sex,:new.depart);
end;
--------------
注意;的使用,如果在begin和end子句中有多条语句的话,每条句子后面都应该有一个分号。
全新的路由器不仅让你更稳定快速地连接无线网络,更可以让家中的智能设备连接在一起。
关键词:Oracle创建触发器的普通应用