如果有一天你又想记录除了scott以外的其他用户呢?create or replace trigger log_logon after logon on database when (user<>'scott') begin insert into sys.event_log values ('logon' ||user|| 'at' || to_char(sysdate,'yyyy-mm-dd hh24:mi:ss')); commit; end; 现在你还认为多次一举么?呵呵 C语言中那么多的#define,有些也只在一个函数中用了一次而已,你也认为多次一举么?呵呵
after logon on database
when (user<>'scott')
begin
insert into sys.event_log
values ('logon' ||user|| 'at' || to_char(sysdate,'yyyy-mm-dd hh24:mi:ss'));
commit;
end;
现在你还认为多次一举么?呵呵
C语言中那么多的#define,有些也只在一个函数中用了一次而已,你也认为多次一举么?呵呵