Firing Trigger

  • hi,

    i am writing a trigger

    CREATE TRIGGER Ztrig

    ON TZ

    FOR INSERT AS

    BEGIN

    INSERT TY VALUES ('')

    END

    then the values are inserted into TY first or TZ first , in other words to which table values will insert first

    CREATE TRIGGER Ztrig

    ON TZ

    AFTER INSERT AS

    BEGIN

    INSERT TY VALUES ('')

    END

    if we use AFTER Instead of FOR then to which table values will insert first

    Thanks,

    Pratap

  • AFTER is the default behavior, so both your triggers are equivalent.

    --Jonathan



    --Jonathan

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply