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
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
转载于:https://www.cnblogs.com/chenyebin/archive/2010/03/19/1690196.html