DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Trigger Question

  1. #1
    Join Date
    Nov 2002
    Location
    a
    Posts
    4

    Trigger Question

    Hi Guys,

    Just a quick question, I have created a trigger and it has the following portion:

    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR( -20001, 'During Trigger Execution' || SQLERRM );
    end;


    What I would like to know is there any way that a message can be generated if the trigger executes correctly.

  2. #2
    Join Date
    Jul 2001
    Location
    Slovenia
    Posts
    422
    If trigger executes correctly, you will get
    X rows inserted/updated/deleted
    after the triggering statement
    If this is not enough put dbms_output.put_line('This is a super successful trigger') before exception.
    Tomaž
    "A common mistake that people make when trying to design something completely
    foolproof is to underestimate the ingenuity of complete fools" - Douglas Adams

Posting Permissions

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


Click Here to Expand Forum to Full Width