+ Reply to Thread
Results 1 to 3 of 3




  

Thread: What is the advantage to use trigger in your PL?

      
  1. #1
    Jedi Master deveshraigniit is on a distinguished road
    Join Date
    November 19, 2010
    Location
    Delhi
    Posts
    33
    Rep Power
    2
    Feedback Score
    0

    Default What is the advantage to use trigger in your PL?

    Triggers are fired implicitly on the tables/views on which they are created. There are various advantages of using a trigger. Some of them are:

    - Suppose we need to validate a DML statement(insert/Update/Delete) that modifies a table then we can write a trigger on the table that gets fired implicitly whenever DML statement is executed on that table.

    - Another reason of using triggers can be for automatic updation of one or more tables whenever a DML/DDL statement is executed for the table on which the trigger is created.

    - Triggers can be used to enforce constraints. For eg : Any insert/update/ Delete statements should not be allowed on a particular table after office hours. For enforcing this constraint Triggers should be used.

    - Triggers can be used to publish information about database events to subscribers. Database event can be a system event like Database startup or shutdown or it can be a user even like User loggin in or user logoff.

  2. #2
    The Force is Strong! minfo is on a distinguished road
    Join Date
    July 27, 2011
    Posts
    76
    Rep Power
    1
    Feedback Score
    0

    Default Re: What is the advantage to use trigger in your PL?

    Re utilization of the code is the best advantage of using trigger in MYSQL.

  3. #3
    The Force is Strong! stufftheme is on a distinguished road
    Join Date
    July 22, 2011
    Posts
    51
    Rep Power
    1
    Feedback Score
    0

    Default Re: What is the advantage to use trigger in your PL?

    triggers are explicitly or implicitly executed when a statement is executed
    you can set an trigger to be executed after a statement is executed so that that command is no executed by user everytime

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Replies: 0
    Last Post: May 15th, 2010, 2:29 pm
  2. High Speed Changer (errrr Sound Trigger)
    By timsdd in forum Photography
    Replies: 40
    Last Post: May 28th, 2008, 8:50 pm
  3. Affliate Marketers Any advantage to pimping iTunes links?
    By Big Dan in forum General Business
    Replies: 4
    Last Post: Apr 15th, 2008, 6:59 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads