摘要: 第一种方式:declare lv_deptno emp.deptno%type:=10;lv_ename emp.ENAME%type:='';cursor find_emps_bydeptno(v_deptno number) is select ename from emp where deptno=v_deptno; begin open find_emps_bydeptno(lv_deptno); loop fetch find_emps_bydeptno into lv_ename; exit when find_emps_bydeptno%notfound; dbm 阅读全文
posted @ 2011-05-27 08:36 KT野人 阅读(3441) 评论(0) 推荐(0) 编辑