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

Thread: triggers

  1. #1
    Join Date
    Mar 2001
    Location
    south africa
    Posts
    401

    triggers

    Hi ,

    Can any one pls explain me what is this :new and ld means.or what exactly we are reffereing to.


    BEGIN
    if (:new.ASR = 'A' and ld.ASR != 'A') then

    EX_TRIGGERS.Ex_Insert( 'xcr'
    , :new.Company_ID
    , 'ON'
    , 'Jobs with zero"
    );

    Thank you ..

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    :new.ASR is the value of ASR after the update operation.

    : old.ASR is the value of ASR before the update operation.

    so ...
    Code:
     if (:new.ASR = 'A' and ld.ASR != 'A') then
    is testing to see if the value of ASR changed to 'A'.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Mar 2001
    Location
    south africa
    Posts
    401

    thnaks

    Thanks for the info.

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