declare @Name nvarchar(255),@Add nvarchar(255)
declare cursor_1 cursor for
select name,add from 表A
open cursor_1
fetch next from cursor_1
into @Name,@Add
while @@fetch_status = 0
begin
update 表B set ADD=@Add where NAME=@Name
fetch next from cursor_1
into @Name,@Add
end
close cursor_1
deallacate cursor_1