Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    7

    Unanswered: Trigger for multiple actions

    Hello,
    I am using DB2 v9.5.
    I want to create a trigger that I want to fire on select, update or delete,
    Is it possible? What is the syntax?

    CREATE TRIGGER T_UPDATESUM
    BEFORE INSERT ON orders | BEFORE UPDATE ON lineitem | ......

    I tried google it, but couldn't find anything very helpful.

    thank you,
    Oscar

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Each action requires a separate trigger, and there is no trigger on SELECT.

    CREATE TRIGGER
    ---
    "It does not work" is not a valid problem statement.

  3. #3
    Join Date
    Nov 2009
    Posts
    7
    Hi,
    thanks for your answer..

    Yes, sure there is no trigger on select, I was thinking in insert and wrote select.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •