触发器实现同步更新

create trigger trTable1Insert

on table1

for Insert

as

update table1 set Position=dept_Name+ A.Position

from dept, Inserted A

where dept.DeptID=table1.DeptID and A.DeptID=table1.DeptID

posted @ 2010-03-19 22:31  cyb  阅读(245)  评论(0编辑  收藏  举报