沙果进来可得50分。
九斤半 2006-11-20 03:56:52 请看你的回帖:
http://community.csdn.net/Expert/topic/5009/5009676.xml?temp=.8081934
-- 注:表有不需(不可)更新的主键
-- 更新触发器
create trigger tr_t1 on t1
for update
update t2
set type=i.type,
name=i.name
from inserted i,deleted d
where
t2.type=i.type and t2.name=i.name and i.id=d.id -- 这里是否有冗余?
初次使用触发器,楼下的请指教。