计算机技术与发展
計算機技術與髮展
계산궤기술여발전
COMPUTER TECHNOLOGY AND DEVELOPMENT
2013年
11期
66-69,73
,共5页
SQL Server%数据库%触发器%DML%AFTER%INSTEAD OF
SQL Server%數據庫%觸髮器%DML%AFTER%INSTEAD OF
SQL Server%수거고%촉발기%DML%AFTER%INSTEAD OF
SQL Server%database%trigger%DML%AFTER%INSTEAD OF
DML触发器是SQL Server数据库中应用最广泛的触发器,在维护数据完整性、提高数据安全性、满足复杂的数据约束等方面具有重要作用。文中对DML触发器的应用进行详细研究。首先,介绍了DML触发器包含的AFTER和IN-STEAD OF两种类型;其次,通过图形表示了AFTER触发器的触发顺序,并阐明了指定触发顺序需要注意的问题;然后,研究INSERT、DELETE、UPDATE三类触发器的工作原理;最后,给出了DML触发器的几个应用技巧。实际运用时要结合文中的研究内容进行详细设计,以便提高数据库系统的整体性能。
DML觸髮器是SQL Server數據庫中應用最廣汎的觸髮器,在維護數據完整性、提高數據安全性、滿足複雜的數據約束等方麵具有重要作用。文中對DML觸髮器的應用進行詳細研究。首先,介紹瞭DML觸髮器包含的AFTER和IN-STEAD OF兩種類型;其次,通過圖形錶示瞭AFTER觸髮器的觸髮順序,併闡明瞭指定觸髮順序需要註意的問題;然後,研究INSERT、DELETE、UPDATE三類觸髮器的工作原理;最後,給齣瞭DML觸髮器的幾箇應用技巧。實際運用時要結閤文中的研究內容進行詳細設計,以便提高數據庫繫統的整體性能。
DML촉발기시SQL Server수거고중응용최엄범적촉발기,재유호수거완정성、제고수거안전성、만족복잡적수거약속등방면구유중요작용。문중대DML촉발기적응용진행상세연구。수선,개소료DML촉발기포함적AFTER화IN-STEAD OF량충류형;기차,통과도형표시료AFTER촉발기적촉발순서,병천명료지정촉발순서수요주의적문제;연후,연구INSERT、DELETE、UPDATE삼류촉발기적공작원리;최후,급출료DML촉발기적궤개응용기교。실제운용시요결합문중적연구내용진행상세설계,이편제고수거고계통적정체성능。
DML trigger is the trigger that most widely used in SQL Server database,and plays an important role in maintaining data integ-rity,improving data security,and meeting complex data constraints. Study the application of DML trigger in detail. First,introduce the two types of AFTER and INSTEAD OF that included in DML trigger;Second,show the trigger sequence of AFTER trigger through a graph-ical,and clarify the needing attention problems of specified trigger;Then research the working principle of the three class triggers of IN-SERT,DELETE and UPDATE;Finally,give several application skills of DML trigger. The practical application does the detail design should combine this contents in order to improve the overall performance of database system.