当修改表MenuA时,把修改后的数据写入表Object表中
第一次写触发器,不知是不是这样写的,为什么说对像名updated无效呢?
CREATE TRIGGER addobject on MenuA
for update
AS
declare @id char(50),@name char(50)
select @id=objectid from updated
select @name=MenuName from updated
insert Object values( @id,@name)