Create a trigger, set the field, starting trigger when executing sql, driven by the implementation of the second table
create trigger Mytr
on a
for insert
as
insert into b select name,id from inserted
Create a trigger, set the field, starting trigger when executing sql, driven by the implementation of the second table
create trigger Mytr
on a
for insert
as
insert into b select name,id from inserted