What is trigger timing?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is trigger timing?

Rating:

When defining a trigger, the trigger timing (whether the trigger action is to be executed before or after the triggering statement) can also be specified by using the BEFORE or AFTER option respectively. The BEFORE and AFTER options apply to both statement and row triggers. Hence, by using the BEFORE and AFTER options, the following four types of row and statement triggers can be created:

  1. BEFORE statement trigger: This trigger executes the trigger action before the triggering statement is executed.

  2. BEFORE row trigger: This trigger executes the trigger action once for each affected row before the triggering statement is executed and integrity constraints are applied, provided the trigger restriction is not violated.

  3. AFTER statement trigger: This trigger executes the trigger action after the triggering statement is executed and integrity constraints, if any, are applied.

  4. AFTER row trigger: This trigger executes the trigger action once for each affected row after the triggering statement is executed and integrity constraints are applied, provided the trigger restriction is not violated. Unlike the BEFORE row triggers, the AFTER row triggers lock rows.
Note: The BEFORE and AFTER triggers fired by the Data Manipulation Language (DML) statements can be defined only on tables and not on views.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.