create table logger(
log_id number primary key,
oparationType varchar2(10),
log_time date
log_rows number(2)
)
//创建序列
create sequence log_id increment by 1 start with 1;
//创建触发器
create or replace trigger tri
after insert or update or delete
on my_emp
for each row
declare
oparationType char(10);
//这里怎么设置影响的行数
log_rows.....
begin
if inserting then
oparationType :='插入';
else if updating then
oparationType :='更新';
else
oparationType :='删除';
endif
insert into logger values(log_id.nextval,oparationType,sysdate,log_rows);
end;