create or replace procedure update
is
cursor c1 is
select s.id as column1,t.huzhu_name as column2 from table1 s,table2 t where t.id=s.apply_id ;
begin
for r1 in c1 loop
update table1 a set a.huzhu_name=r1.column2 where a.id=r1.column1;
commit;
end loop;
end update;
is
cursor c1 is
select s.id as column1,t.huzhu_name as column2 from table1 s,table2 t where t.id=s.apply_id ;
begin
for r1 in c1 loop
update table1 a set a.huzhu_name=r1.column2 where a.id=r1.column1;
commit;
end loop;
end update;