日期:2014-05-18 浏览次数:20479 次
Create trigger tr_A on A after update,insert as update B set b1=b1+1 ---條件樓主自定義
------解决方案--------------------
Create trigger tr_A on A for update,insert as update B set b1=b1+1
------解决方案--------------------
create trigger my_trig on A for insert ,update as update b set b1 = b1 + 1 where 关键字 = (select 关键字 from inserted) go
------解决方案--------------------
create trigger my_trig on A for insert ,update as update b set b1 = b1 + 1 where 关键字 = (select 关键字 from inserted) go