-1
declare @memberid int
declare @uid int
select memberid, uid into #temp from member
While (Select Count(*) From #Temp) > 0
Begin
select top 1 @memberid= memberid, @uid=uid from #temp
update savingdetail set [email protected] where [email protected]
--------------------------------------------------------------------------------
update SAVINGDETAIL_2063_2064 set [email protected] where [email protected]
update SAVINGDETAIL_2064_2065 set [email protected] where [email protected]
update SAVINGDETAIL_2065_2066 set [email protected] where [email protected]
update SAVINGDETAIL_2066_2067 set [email protected] where [email protected]
update SAVINGDETAIL_2067_2068 set [email protected] where [email protected]
--------------------------------------------------------------------------------
delete from #temp where [email protected]
End
drop table #temp
이해할 수없는 부분이 있습니까? –