fetch c1 into c1_rec;
exit when c1%notfound;
execute immediate 'select count(*) from '||c1_rec.table_name||' where bmfl='''||v_bmfl||'''' into n;
if n >0 then
...
exit when c1%notfound;
execute immediate 'select count(*) from '||c1_rec.table_name||' where bmfl='''||v_bmfl||'''' into n;
if n >0 then
...
你的游标是干什么的啊?