update @tFinNewly set f0010=@value
where ind_id=@ind_id and org_id=@org_id and rpt_yr=@rpt_yr and
rpt_prd=@rpt_prd
if @@ROWCOUNT = 0 --纪录不存在,没有记录更新
begin
insert into @tFinNewly(ind_id,org_id,rpt_yr,rpt_prd,f0010)
values(@ind_id,@org_id,@rpt_yr,@rpt_prd,@value)
end