from bj_dqkcb where bjbm=bjbm1; if ii=0 then insert into bj_dqkcb(bjbm,dqkcl,dqkcje) value(bjbm1,yssl1,ysdj1); else update bj_dqkcb set dqkcl=dqkcl+yssl1; dqkcje=dqkcje+yssl1*ysdj1; end if end if if deleting or updating then rq2:=:old.rq;bjbm2:=:old.bjbm;yssl2:=:old.yssl; ysdj2:=:old.ysdj; update bj_dqkcb set dqkcb=dqkcl-yssl2; dqkcje=dqkcje-yssl2*ysdj2 end if; end ; 7.结束语 数据库触发器在数据库开发、MIS开发上有很广泛的应用,但经验表明,使用过多的触发器将降低整个数据库的性能。如果数据库触发器写得不好,它会很快破坏数据库的性能,因此,在适当的时候使用恰当的触发器显得非常重要。 参考文献: Michael Abbey.机械工业出版社.Oracle8初学者指南,1998 Joline Morrison.机械工业出版社.Oracle8数据库指南,1999 Tile:The applications of the oracle triggers in the development of MIS Abstract:the paper introduces the concept and types of the oracle triggers,summarizes the applications of the oracle triggers in the MIS,and provides the examples for reference. Key words:oracle trigger zhtsam@263.net 通讯地址:湖南长沙中南大学岳麓校区新研公寓617信箱 邮编:410083 e-mail:zhtsam@263.net 电话:0731-8832997 call:0731-95838-16056 上一页 [1] [2]
Tags:
|