+ -
当前位置:首页 → 问答吧 → sql中continue的使用,急!急!

sql中continue的使用,急!急!

时间:2011-11-28

来源:互联网

if zcbh1 is null then
  Err.oi_errcode := -1;
  Err.oc_errtext := '注册编号不能为空!';
  语句A
  i:=i+1;
  coutiune;
  end if;
怎么不能通过编译 说要声明continue;

作者: lxb_ccit   发布时间: 2011-11-28

continue必须在loop这样的循环语句里用的
if 不行。就是不能用

作者: yixilan   发布时间: 2011-11-28

引用楼主 lxb_ccit 的回复:
if zcbh1 is null then
Err.oi_errcode := -1;
Err.oc_errtext := '注册编号不能为空!';
语句A
i:=i+1;
coutiune;
end if;
怎么不能通过编译 说要声明continue;


不知道是你输入错误还是你原来的代码就是错误的,coutiune <> continue的。

作者: xiaobn_cn   发布时间: 2011-11-28