1
對於'插入'觸發器,是否在觸發時插入表中的行?SQL Server - 對於插入觸發器
CREATE Trigger check_availability on Room
For Insert, Update
謝謝!
對於'插入'觸發器,是否在觸發時插入表中的行?SQL Server - 對於插入觸發器
CREATE Trigger check_availability on Room
For Insert, Update
謝謝!
是的。
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.
您好,所述[博客](http://decipherinfosys.wordpress.com/2008/02/28/setting-the-execution-order-of-triggers-in-sql-服務器/)條目在這裏討論觸發優先級和如何/什麼數據被插入。 – bonCodigo