create proc usp_updateA
as
begin
select * into #tempA from TB1 where id='A'  --1、建立临时表
update #tempA set id='B',number=number*0.80 --2、处理更新值

insert into TB2 --3、放入新表
select * from #tempA
end