create trigger ruku
on dbo.sun_StockInTemp
for insert
as
declare @id varchar(50),@goodsno varchar(50),@goodscount money,@rukudate datetime
select @id=convert(varchar(50),stockinid),@goodsno=goodsno,@goodscount=convert(money,goodscount),@rukudate=goodsintime from INSERTED
insert into df_StockIN_Detail(ID,GoodsNO,Count)values(@id,@goodsno,@goodscount)
insert into df_StockIN(Date,ID)values(@rukudate,@id)