要把一个数据表里的某个数据插入到另一个已经建好的数据表中
写一个触发器
create trigger insertd
on t_BOS_TLHBEntry1
after insert
as
if ((select FItemID from t_BOS_TLHBEntry)is not null)
begin
declare @D int;
select @D=FItemID from inserted
insert into t_BOS_TLHBEntry1 (FItemID1) values (@D)
end