CREATE TRIGGER t1
ON A
FOR after of INSERT
AS
begin
declare @id int,@ad char(100)
select @id=id from selected
select @ad=address from B where id=@id
update a set address=@ad where id=@id
end
GO
ON A
FOR after of INSERT
AS
begin
declare @id int,@ad char(100)
select @id=id from selected
select @ad=address from B where id=@id
update a set address=@ad where id=@id
end
GO
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货