CREATE OR REPLACE TRIGGER table_Trigger
after delete or insert or update on table for each statement
begin
if delete then
--语句
end if;
if insert then
--语句
end if;
if update then
--语句
end if;
end;
/这样写的三合一的语句级触发器哪里错了??请更正,小弟急用,谢谢!!
after delete or insert or update on table for each statement
begin
if delete then
--语句
end if;
if insert then
--语句
end if;
if update then
--语句
end if;
end;
/这样写的三合一的语句级触发器哪里错了??请更正,小弟急用,谢谢!!
解决方案 »
- 求教一个odbc连接oracle数据库的问题。
- 关于建表的问题?谢谢
- 请教如何用date类型字段的年月分组
- 在建一个和a表结构一样的空表中,有个问题不是很了解!
- 请问为什么我在 SQL*PLUS 中用insert添加记录后看不到?
- ORACLE建表和ASP连ORACLE的问题
- 求一个统计表的写法,sql学的不好,急啊。
- 如何对数据库压力测试?
- 从返回的数据集中过滤出第n条到n+m条记录,Limit, offset 怎么用?
- ACCESS通过ODBC访问数据库有的记录能修改有的记录不能修改???
- 在存储过程中用动态SQL建表,返回错误'ORA-01031: insufficient privileges'
- ★★急求sql优化算法处理手机区域确定,超高分相赠
each row
after delete or insert or update on table for each statement
begin
if deleting then
--语句
end if;
if inserting then
--语句
end if;
if updating then
--语句
end if;
end;
oracle 分为行级别与语句别
CREATE OR REPLACE TRIGGER table_Trigger
after delete or insert or update on table
for each row
begin
if deleting then
--语句
end if;
if inserting then
--语句
end if;
if updating then
--语句
end if;
end;
/