Thread: CHECKS vs. BEFORE INSERT OR UPDATE TRIGGER

CHECKS vs. BEFORE INSERT OR UPDATE TRIGGER

From
Ludwig Lim
Date:
Hi:
  I am just wondering. Which one is executed first:
CHECK Constraints or BEFORE INSERT OR UPDATE TRIGGER?

Thank you very much,

ludwig.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


Re: CHECKS vs. BEFORE INSERT OR UPDATE TRIGGER

From
"Michael Paesold"
Date:
Ludwig Lim <lud_nowhere_man@yahoo.com> wrote:

>    I am just wondering. Which one is executed first:
> CHECK Constraints or BEFORE INSERT OR UPDATE TRIGGER?

First the BEFORE... TRIGGERs, then the CHECK contraints,
so you definetly can change a row in a trigger to match
the contraints...

Regards,
Michael Paesold