字典翻译 问答 初中 政治 存储过程raise什么意思EXCEPTIONwhenothersthenrollback;dbms_output.put_line('code:'||sqlcode);dbms_output.put_line('errm:'||sqlerrm);raise;whenothersthen和raise;分别是什么意思
问题标题:
存储过程raise什么意思EXCEPTIONwhenothersthenrollback;dbms_output.put_line('code:'||sqlcode);dbms_output.put_line('errm:'||sqlerrm);raise;whenothersthen和raise;分别是什么意思
问题描述:

存储过程raise什么意思

EXCEPTION

whenothersthen

rollback;

dbms_output.put_line('code:'||sqlcode);

dbms_output.put_line('errm:'||sqlerrm);

raise;

whenothersthen和raise;

分别是什么意思

艾永春回答:
  异常分很多种类,如NO_FOUND.others处本应该写异常名称,如果不想把异常分得那麼细,可以笼统一点用others来捕获,即所有异常均用others来捕获.   whenothersthen表示是其它异常.   raise表示抛出异常,让User可以看到.
点击显示
政治推荐
热门政治推荐
  • 语文
  • 数学
  • 英语
  • 政治
  • 地理
  • 历史
  • 化学
  • 生物
  • 物理
  • 音乐
  • 体育
  • 美术