set serveroutput on

DECLARE

cursor cemp is select ename from emp where deptno=50;
pename emp.ename%type; --自定义异常
no_emp_found exception;
begin open cemp; fetch cemp into pename; if
cemp%notfound then
raise no_emp_found;
end if;
close cemp;
exception when
no_emp_found then dbms_output.put_line('自定义异常');
end;

最新文章

  1. 原创 C++作用域 (一)
  2. MySQL批量UPDATE多行记录
  3. MVC模式与Android
  4. webpack webpack-dev-server使用指南
  5. COGS 2479 偏序 题解
  6. NEFU 84 五指山 (扩展欧几里得)
  7. android 透明度颜色值
  8. centos 7安装mysql报错-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory
  9. AndroidStudio字体主题样式分享
  10. Xcode 的正确打开方式——Debugging(转)
  11. hibernate它 11.many2many双向
  12. 使用spring webflow,在前台页面中如何显示后端返回的错误信息
  13. Windows系统下八大具有高逼格的DOS命令之一【ping】
  14. linux下错误的捕获:errno(errno.h)和strerror(string.h)的使用
  15. Docker容器镜像删除
  16. CSS grid 模板
  17. Linux 文件目录管理命令
  18. 在 React、Vue项目中使用 SVG
  19. codeforce R 491 (div2)
  20. Python 函数 (关键字参数)

热门文章

  1. HDU4183 Pahom on Water(来回走最大流,一个点只经过一次)
  2. Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  3. spark调优——JVM调优
  4. Brief Introduction to SDK – JRE – JVM – JIT
  5. vscode React编程配置
  6. windows10家庭版升级专业版/企业版
  7. mui.fire()用法,触发目标窗口的自定义事件
  8. ansible 批量部署准备工作
  9. genie 来自netflix 的分布式大数据调度服务
  10. ksh与bash的异同