CREATE TABLE t_expr_edition (id number(10),edition number(10)); // 建表
CREATE OR REPLACE TRIGGER trig_t_par_accitem // 触发器名
AFTER DELETE OR INSERT OR UPDATE ON t_par_accitem // 触发器关联表
BEGIN
IF INSERTING THEN // 可以用来判断触发类型
update t_expr_edition set edition=edition+1 where id=1; // 触发器执行的操作
END;
252

被折叠的 条评论
为什么被折叠?



