declare type mary_emp_cursor is ref cursor; test_cursor mary_emp_cursor; v_ename emp.ename%type; v_sal emp.sal%type; begin open test_cursor for select ename,sal from emp where deptno=no; loop fetch test_cursor into v_ename,v_sal; exit when test_cursor%notfound; if v_sal5000 then update emp set sal=sal+100 where ename=v_ename; end if; dbms_output.put_line(姓名:||v_ename||工资:||v_sal); end loop; close test_cursor; end; * * * * * * * creat table book(bookid number(10),bookname varchar2(50),unit number(4,2)); ------存储过程 create or replace procedure mary_pro03(m
您可能关注的文档
最近下载
- 2025硕高电器十五周年庆暨乔迁盛典活动方案-108P.pdf VIP
- 阳光房技术规范与标准.docx VIP
- 湖南省药品经营企业地址名单目录.doc VIP
- 2025年山东省青岛市城阳区中考一模化学试题(含答案).pdf VIP
- 心脑血管疾病的预防【共36张课件】.pptx VIP
- GB-摩托车和轻便摩托车道路照明及光信号装置的安装规定.pdf VIP
- 国家粮食和物资储备局垂直管理局事业单位招聘考试真题2024.pdf VIP
- 基于Petri网的过程挖掘与优化:理论、方法与实践.docx
- DL5161电气装置安装工程质量检验及评定规程.doc VIP
- 2024届广东省深圳市福田区耀华小学六年级下学期模拟语文试题含答案.doc VIP
原创力文档

文档评论(0)