存储过程模拟题
来源:互联网 发布:行业数据哪里找 编辑:程序博客网 时间:2024/04/30 15:56
创建存储过程,功能是实现在员工信息表中输出指定民族的所有员工的姓名,
如果无符合条件的员工,则触发异常,输出“无符合条件员工”。
create or replace procedure p2(mz in 员工信息表.民族%type)isname 员工信息表.民族%type;e exception;cursor c1 is select 姓名 from 员工信息表 where民族 = mz ;begin open c1; fetch c1 into name;if c1%notfound then raise e; end if;while c1%found loop dbms_output.put_line(name); fetch c1 into name;end loop;exception when e then dbms_output.put_line('无符合条件员工'); colse c1; end;
0 0
- 存储过程模拟题
- 存储过程模拟加锁解锁
- 上海交易所模拟成交存储过程
- mysql 存储过程 模拟 php的explode 函数
- mysql建立存储过程,模拟插入200万用户
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- 存储过程
- Windows下的Qt使用posix线程
- LG新旗舰G3也要配备指纹识别
- 简单的解释什么是二次规划问题
- jQuery the 1:hello world
- 不刷新改变/更换URL: pushState + Ajax
- 存储过程模拟题
- Android:资源 id 及资源 id 的动态获取
- java.lang包概述
- linux命令后台运行
- 关于onItemClick和onItemLongClick同时执行的一般性解决方法
- Ubuntu下的deb包制作详解
- 第8章 高效开发和使用插件 (二)
- 通过JMX获取weblogic的IP地址和端口
- StringBuilder与StringBuffer的区别