这样的触发器如何实现?
A表改动数据时,B表跟A表ID号相同的数据也改动?
[解决办法]
create trigger tr_Update on a
for update
update b set b.数据=i.数据 from inserted i,deleted d where b.id=d.id
[解决办法]
create trigger tr_update on A
for update
as
update b set
col1 = I.col1, ...
from B, inserted I
where B.id = I.id