create or replace procedure kj_yf is
kjyf int;
begin
kjyf:=2;
while kjyf<13 loop
insert into a(a1,a2,a3,a4)
select a1,a2,KJYF,a4
from a
where a3=1;
kjyf:=kjyf+1;
end loop;
------解决方案--------------------
最后加个end;
------解决方案--------------------
#1正解,end loop 后加个COMMIT;