开发者

What is Different between After And For in Triggers?

开发者 https://www.devze.com 2023-03-05 03:04 出处:网络
What is For usage and diffrenc开发者_如何学编程e between after and for??? Update Which One is Compatible with Standard SqlFOR | AFTER

What is For usage and diffrenc开发者_如何学编程e between after and for???

Update Which One is Compatible with Standard Sql


FOR | AFTER

AFTER specifies that the DML trigger is fired only when all operations specified in the triggering SQL statement have executed successfully. All referential cascade actions and constraint checks also must succeed before this trigger fires.

AFTER is the default when FOR is the only keyword specified.

AFTER triggers cannot be defined on views.

FOR and AFTER are the same, INSTEAD OF is different, see Books Online for details http://msdn.microsoft.com/en-us/library/ms189799(SQL.90).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消