Triggers in Oracle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakshmanankg
    New Member
    • May 2007
    • 1

    Triggers in Oracle

    what are the type of trigger in oracle?
  • frozenmist
    Recognized Expert New Member
    • May 2007
    • 179

    #2
    Hi,
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment for you. You will get the answer in a tutorial or by Googling.
    Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    • frozenmist
      Recognized Expert New Member
      • May 2007
      • 179

      #3
      the different types of triggers.are

      Row triggers and statement triggers

      A Row trigger fires once for each row affected. It uses FOR EACH ROW clause. They are useful if trigger action depends on number of rows affected.

      Statement Trigger fires once, irrespective of number of rows affected in the table. Statement triggers are useful when triggers action does not depend on

      Before and afterTriggers

      While defining the trigger we can specify whether to perform the trigger action (i.e. execute trigger body) before or after the triggering statement. BEFORE and AFTER triggers fired by DML statements can only be defined on tables.

      BEFORE triggers The trigger action here is run before the trigger statement.

      AFTER triggers The trigger action here is run after the trigger statement.

      INSTEAD of Triggers provide a way of modifying views that can not be modified directly using DML statements.

      LOGON triggers fires after successful logon by the user and LOGOFF trigger fires at the start of user logoff.

      Comment

      Working...