带参触发器简单例子测试

前端之家收集整理的这篇文章主要介绍了带参触发器简单例子测试前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
create table Test
(
iKey int,
iValue int,
primary key(iKey)
);
create table Test_Log
(
iKey int,
iClass varchar(4)
);
create trigger Test_Tri after insert on Test
for each row
begin
if :new.iValue>90 then
insert into Test_log values(:new.iKey,1);
end if;
end;


insert into Test values(12,120);
insert into Test values(18,60);
insert into Test values(10,90);
insert into Test values(20,91);

insert into Test values(21,92);


http://blog.csdn.net/i792439187/article/details/8826751

原文链接:https://www.f2er.com/oracle/211126.html

猜你在找的Oracle相关文章