存储过程求教解决方案

存储过程求教
create or replace procedure whq_procedure is
cursor whq_cursor0 is select distinct city from tmp_whq_guizhou_t2;
cursor whq_cursor(c in varchar(100)) 
is
select city,item,shu from tmp_whq_guizhou_t2 where city=c order by shu desc;
begin
for cur1 in whq_cursor0 loop
     for cur2 in whq_cursor(cur1.city) loop
          i:=0;
          insert into tmp_whq_guizhou_t(rowname,colname,cnt,colorder) values(cur2.city,i,cur2.item,cur2.shu);
          i=i+1;
    end loop;
end loop ;
end;
一直报错,第一行第七列出错,错哪里了?
------解决方案--------------------
引用:
create or replace procedure whq_procedure is
cursor whq_cursor0 is select distinct city from tmp_whq_guizhou_t2;
cursor whq_cursor(c in varchar(100)) 
is
select city,item,shu from tmp_whq_guizhou_t2 where city=c order by shu desc;
begin
for cur1 in whq_cursor0 loop
     for cur2 in whq_cursor(cur1.city) loop
          i:=0;
          insert into tmp_whq_guizhou_t(rowname,colname,cnt,colorder) values(cur2.city,i,cur2.item,cur2.shu);
          i=i+1;
    end loop;
end loop ;
end;
一直报错,第一行第七列出错,错哪里了?

i:=i+1
------解决方案--------------------
引用:
end;
一直报错,第一行第七列出错,错哪里了?

i:=i+1改了还是不行

什么错误呢,错误信息贴点
------解决方案--------------------
引用:
Quote: 引用:


end;
一直报错,第一行第七列出错,错哪里了?

i:=i+1
改了还是不行

什么错误呢,错误信息贴点
C IN VARCHAR